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

Function LeapYearAD

util/draft/datetime.h:22–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 inline bool LeapYearAD(ui32 year) {
23 return (!(year % 4) && (year % 100)) || !(year % 400);
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;

Callers 3

NewMethod · 0.85
datetime.cppFile · 0.85
Y_UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected