| 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; |
no outgoing calls
no test coverage detected