Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
103
unsigned TDate::GetMonth() const {
104
tm dateTm;
105
localtime_r(&Timestamp, &dateTm);
106
return ((unsigned)dateTm.tm_mon) + 1;
107
}
108
109
unsigned TDate::GetMonthDay() const {
110
tm dateTm;
Callers
1
Y_UNIT_TEST
Function · 0.80
Calls
1
localtime_r
Function · 0.85
Tested by
no test coverage detected