Lines Matching full: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()
58 u32 u32tmp, udays, century, day_of_century, year_of_century, year, in rtc_time64_to_tm() local
71 * (fictitious) calendar where the year starts in March, month = 2 in rtc_time64_to_tm()
73 * mathematically convenient because the day of the year does not in rtc_time64_to_tm()
74 * depend on whether the year is leap or not. For instance: in rtc_time64_to_tm()
76 * March 1st 0-th day of the year; in rtc_time64_to_tm()
78 * April 1st 31-st day of the year; in rtc_time64_to_tm()
80 * January 1st 306-th day of the year; (Important!) in rtc_time64_to_tm()
82 * February 28th 364-th day of the year; in rtc_time64_to_tm()
83 * February 29th 365-th day of the year (if it exists). in rtc_time64_to_tm()
107 year = 100 * century + year_of_century; in rtc_time64_to_tm()
116 * Recall that January 01 is the 306-th day of the year in the in rtc_time64_to_tm()
122 year = year + is_Jan_or_Feb; in rtc_time64_to_tm()
130 tm->tm_year = (int) (year - 1900); in rtc_time64_to_tm()