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

Function CompareTMFull

util/datetime/base_ut.cpp:302–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300 }
301
302 static bool CompareTMFull(const tm* t0, const tm* t1) {
303 return t0 && t1 &&
304 CompareTM(*t0, *t1) &&
305 (t0->tm_isdst == t1->tm_isdst)
306#ifndef _win_
307 && (t0->tm_gmtoff == t1->tm_gmtoff) &&
308 TimeZoneEq(t0->tm_zone, t1->tm_zone)
309#endif // _win_
310 && true;
311 }
312
313 void TestGmTimeR(time_t starttime, time_t finishtime, int steps) {
314 time_t step = (finishtime - starttime) / steps;

Callers 1

TestGmTimeRFunction · 0.85

Calls 2

CompareTMFunction · 0.85
TimeZoneEqFunction · 0.85

Tested by 1

TestGmTimeRFunction · 0.68