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

Method New

util/draft/datetime.cpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 TSimpleTM TSimpleTM::New(time_t t, i32 gmtoff, i8 isdst) {
72 time_t tt = t + gmtoff + isdst * 3600;
73 struct tm tmSys;
74 Zero(tmSys);
75 GmTimeR(&tt, &tmSys);
76 tmSys.tm_isdst = isdst;
77#ifndef _win_
78 tmSys.tm_gmtoff = gmtoff;
79#endif
80
81 return New(tmSys);
82 }
83
84 TSimpleTM TSimpleTM::NewLocal(time_t t) {
85 TTimeData d(t);

Callers

nothing calls this directly

Calls 4

ZeroFunction · 0.85
GmTimeRFunction · 0.85
LeapYearADFunction · 0.85
NewFunction · 0.50

Tested by

no test coverage detected