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

Function YDayFromMonthAndDay

util/draft/datetime.h:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 inline ui32 YDayFromMonthAndDay(ui32 month /*0 - based*/, ui32 mday /*1 - based*/, bool isleap) {
27 return MonthDaysNewYear[isleap][Min(month, (ui32)11u)] + mday - 1;
28 }
29
30 void YDayToMonthAndDay(ui32 yday /*0 - based*/, bool isleap, ui32* month /*0 - based*/, ui32* mday /*1 - based*/);
31

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 1

MinFunction · 0.50

Tested by

no test coverage detected