Lines Matching defs:year
15 28, // February (not leap year)
33 static bool is_leap_year(uint16_t year) {
34 return ((year % 4) == 0 && (year % 100) != 0) || ((year % 400) == 0);
40 for (uint16_t year = local_epoch_year; year < rtc->year; year++) {
41 days_since_local_epoch += is_leap_year(year) ? 366 : 365;
44 // Next add all the prior complete months this year.
48 if (rtc->month > 2 && is_leap_year(rtc->year)) {
78 rtc->year < local_epoch_year ||
79 rtc->year > 2099;
89 .year = default_year,
93 if (rtc_is_invalid(rtc) || rtc->year < default_year) {