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

Method AsTimeT

util/draft/datetime.cpp:185–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 }
184
185 time_t TSimpleTM::AsTimeT() const {
186 struct tm t = AsStructTmLocal();
187 return TimeGM(&t) - GMTOff - IsDst * 3600;
188 }
189
190 struct tm TSimpleTM::AsStructTmUTC() const {
191 struct tm res;

Callers 3

AssertSimpleTMFunction · 0.80
Y_UNIT_TESTFunction · 0.80
operator==Method · 0.80

Calls 1

TimeGMFunction · 0.85

Tested by

no test coverage detected