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

Method ToStringUpToSeconds

util/datetime/base.cpp:187–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187TString TInstant::ToStringUpToSeconds() const {
188 char buf[64];
189 auto len = FormatDate8601(buf, sizeof(buf), TimeT());
190 if (!len) {
191 ythrow yexception() << "TInstant::ToStringUpToSeconds: year does not fit into an integer";
192 }
193 return TString(buf, len);
194}
195
196TString TInstant::ToIsoStringLocal() const {
197 return ::ToString(FormatIsoLocal(*this));

Callers 5

ExecServerThreadMethod · 0.80
ExecServerThreadMethod · 0.80
DoImplMethod · 0.80
OutputHeaderFunction · 0.80
Y_UNIT_TESTFunction · 0.80

Calls 1

FormatDate8601Function · 0.85

Tested by

no test coverage detected