Searched refs:is_leap_year (Results 1 – 8 of 8) sorted by relevance
32 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()41 return rtc_ydays[is_leap_year(year)][month] + day - 1; in rtc_year_days()60 bool is_Jan_or_Feb, is_leap_year; in rtc_time64_to_tm() local108 is_leap_year = year_of_century != 0 ? in rtc_time64_to_tm()127 day_of_year - 306 : day_of_year + 31 + 28 + is_leap_year; in rtc_time64_to_tm()
51 return 365 + (is_leap_year(year) ? 1 : 0); in rtd119x_rtc_days_in_year()
354 if (is_leap_year(year)) in sunxi_rtc_settime()
434 if (is_leap_year(year + AC100_YEAR_OFF + 1900)) in ac100_rtc_set_time()
619 if (is_leap_year(rtc_tm->tm_year + SUN6I_YEAR_MIN)) in sun6i_rtc_settime()
367 } while (!is_leap_year(alarm->time.tm_year + 1900) && in __rtc_read_alarm()
51 bool is_Jan_or_Feb, is_leap_year; in time64_to_tm() local117 is_leap_year = year_of_century ? !(year_of_century % 4) : !(century % 4); in time64_to_tm()133 day_of_year += is_Jan_or_Feb ? -306 : 31 + 28 + is_leap_year; in time64_to_tm()
223 static inline bool is_leap_year(unsigned int year) in is_leap_year() function