Lines Matching refs:year
30 int rtc_month_days(unsigned int month, unsigned int year) in rtc_month_days() argument
32 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
39 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) in rtc_year_days() argument
41 return rtc_ydays[is_leap_year(year)][month] + day - 1; in rtc_year_days()
51 unsigned int month, year, secs; in rtc_time64_to_tm() local
60 year = 1970 + days / 365; in rtc_time64_to_tm()
61 days -= (year - 1970) * 365 in rtc_time64_to_tm()
62 + LEAPS_THRU_END_OF(year - 1) in rtc_time64_to_tm()
65 year -= 1; in rtc_time64_to_tm()
66 days += 365 + is_leap_year(year); in rtc_time64_to_tm()
68 tm->tm_year = year - 1900; in rtc_time64_to_tm()
74 newdays = days - rtc_month_days(month, year); in rtc_time64_to_tm()