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

Method GetMonth

util/draft/date.cpp:103–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103unsigned TDate::GetMonth() const {
104 tm dateTm;
105 localtime_r(&Timestamp, &dateTm);
106 return ((unsigned)dateTm.tm_mon) + 1;
107}
108
109unsigned TDate::GetMonthDay() const {
110 tm dateTm;

Callers 1

Y_UNIT_TESTFunction · 0.80

Calls 1

localtime_rFunction · 0.85

Tested by

no test coverage detected