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

Function WriteTmToStream

util/datetime/base.cpp:94–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void WriteTmToStream(IOutputStream& os, const struct tm& theTm) {
95 os << Pad<4>(theTm.tm_year + 1900) << '-' << Pad<2>(theTm.tm_mon + 1) << '-' << Pad<2>(theTm.tm_mday) << 'T'
96 << Pad<2>(theTm.tm_hour) << ':' << Pad<2>(theTm.tm_min) << ':' << Pad<2>(theTm.tm_sec);
97 }
98
99 template <bool PrintUpToSeconds, bool iso>
100 void WritePrintableLocalTimeToStream(IOutputStream& os, const ::NPrivate::TPrintableLocalTime<PrintUpToSeconds, iso>& timeToPrint) {

Callers 2

FormatDate8601Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected