Lines Matching defs:year
9 * - The year field takes the actual value, not year - 1900.
25 int rtc_month_days(unsigned int month, unsigned int year)
27 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1);
35 * But in U-Boot January is month 1 and we do not subtract 1900 from the year.
39 unsigned int month, year, secs;
47 year = 1970 + days / 365;
48 days -= (year - 1970) * 365
49 + LEAPS_THRU_END_OF(year - 1)
52 year -= 1;
53 days += 365 + is_leap_year(year);
55 tm->tm_year = year; /* Not year - 1900 */
61 newdays = days - rtc_month_days(month, year);