20static const int32_t daysInMonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
21static const int32_t cumulativeDays[] = {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334};
22static const int32_t cumulativeDaysLeap[] = {0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335};
26 return (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
49 carry = timePtr->
tm_min / 60;
119 int32_t h = (d + 13 * (m + 1) / 5 + k + k / 4 + j / 4 - 2 * j) % 7;
121 timePtr->
tm_wday = (h + 6) % 7;
static const int32_t daysInMonth[]
bool _time_is_leap_year(int32_t year)
_time_zone_t * _time_zone(void)
void _time_normalize(struct tm *timePtr)
void _time_day_of_year(struct tm *timePtr)
void _time_day_of_week(struct tm *timePtr)
static const int32_t cumulativeDays[]
int32_t _time_days_in_month(int32_t month, int32_t year)
void _time_zone_init(void)
static const int32_t cumulativeDaysLeap[]