MCPcopy Create free account
hub / github.com/catboost/catboost / FormatDate8601

Function FormatDate8601

util/datetime/base.cpp:312–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312size_t FormatDate8601(char* buf, size_t len, time_t when) {
313 struct tm theTm;
314 struct tm* ret = GmTimeR(&when, &theTm);
315
316 if (ret) {
317 TMemoryOutput out(buf, len);
318
319 WriteTmToStream(out, theTm);
320 out << 'Z';
321
322 return out.Buf() - buf;
323 }
324
325 return 0;
326}
327
328void SleepUntil(TInstant instant) {
329 TInstant now = TInstant::Now();

Callers 3

Out<TInstant>Function · 0.85
ToStringUpToSecondsMethod · 0.85
sprint_date8601Function · 0.85

Calls 3

GmTimeRFunction · 0.85
WriteTmToStreamFunction · 0.85
BufMethod · 0.45

Tested by

no test coverage detected