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()
57 u32 u32tmp, udays, century, day_of_century, year_of_century, year, in rtc_time64_to_tm() local
85 * (fictitious) calendar where the year starts in March, month = 2 in rtc_time64_to_tm()
87 * mathematically convenient because the day of the year does not in rtc_time64_to_tm()
88 * depend on whether the year is leap or not. For instance: in rtc_time64_to_tm()
90 * March 1st 0-th day of the year; in rtc_time64_to_tm()
92 * April 1st 31-st day of the year; in rtc_time64_to_tm()
94 * January 1st 306-th day of the year; (Important!) in rtc_time64_to_tm()
96 * February 28th 364-th day of the year; in rtc_time64_to_tm()
97 * February 29th 365-th day of the year (if it exists). in rtc_time64_to_tm()
121 year = 100 * century + year_of_century; in rtc_time64_to_tm()
130 * Recall that January 01 is the 306-th day of the year in the in rtc_time64_to_tm()
136 year = year + is_Jan_or_Feb; in rtc_time64_to_tm()
144 tm->tm_year = (int) (year - 1900); in rtc_time64_to_tm()