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

Function TimeZoneEq

util/datetime/base_ut.cpp:292–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 }
291
292 static bool TimeZoneEq(const char* zone0, const char* zone1) {
293 if (strcmp(zone0, "GMT") == 0) {
294 zone0 = "UTC";
295 }
296 if (strcmp(zone1, "GMT") == 0) {
297 zone1 = "UTC";
298 }
299 return strcmp(zone0, zone1) == 0;
300 }
301
302 static bool CompareTMFull(const tm* t0, const tm* t1) {
303 return t0 && t1 &&

Callers 1

CompareTMFullFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected