Lines Matching refs:year
30 int rtc_month_days(unsigned int month, unsigned int year)
32 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1);
39 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year)
41 return rtc_ydays[is_leap_year(year)][month] + day - 1;
58 u32 u32tmp, udays, century, day_of_century, year_of_century, year,
71 * (fictitious) calendar where the year starts in March, month = 2
73 * mathematically convenient because the day of the year does not
74 * depend on whether the year is leap or not. For instance:
76 * March 1st 0-th day of the year;
78 * April 1st 31-st day of the year;
80 * January 1st 306-th day of the year; (Important!)
82 * February 28th 364-th day of the year;
83 * February 29th 365-th day of the year (if it exists).
107 year = 100 * century + year_of_century;
116 * Recall that January 01 is the 306-th day of the year in the
122 year = year + is_Jan_or_Feb;
130 tm->tm_year = (int) (year - 1900);