| 96 | {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}}; |
| 97 | |
| 98 | static bool is_leapyear(int64_t year) { |
| 99 | return (year & 0x3) == 0 && // year % 4 == 0 |
| 100 | ((year % 100) != 0 || (year % 400) == 0); |
| 101 | } |
| 102 | |
| 103 | // Calculates the days offset from the 1970 epoch. |
| 104 | static int64_t get_days_from_date(int64_t date_year, int64_t date_month, |
no outgoing calls
no test coverage detected