Lines Matching full:year
9 * - The year field takes the actual value, not year - 1900.
26 static int rtc_month_days(unsigned int month, unsigned int year) in rtc_month_days() argument
28 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
36 * But in U-Boot January is month 1 and we do not subtract 1900 from the year.
40 unsigned int month, year, secs; in rtc_to_tm() local
48 year = 1970 + days / 365; in rtc_to_tm()
49 days -= (year - 1970) * 365 in rtc_to_tm()
50 + LEAPS_THRU_END_OF(year - 1) in rtc_to_tm()
53 year -= 1; in rtc_to_tm()
54 days += 365 + is_leap_year(year); in rtc_to_tm()
56 tm->tm_year = year; /* Not year - 1900 */ in rtc_to_tm()
62 newdays = days - rtc_month_days(month, year); in rtc_to_tm()