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
68 * days after 0000-03-01 which is in the year 2939805. in rtc_time64_to_tm()
83 * (fictitious) calendar where the year starts in March, month = 2 in rtc_time64_to_tm()
85 * mathematically convenient because the day of the year does not in rtc_time64_to_tm()
86 * depend on whether the year is leap or not. For instance: in rtc_time64_to_tm()
88 * March 1st 0-th day of the year; in rtc_time64_to_tm()
90 * April 1st 31-st day of the year; in rtc_time64_to_tm()
92 * January 1st 306-th day of the year; (Important!) in rtc_time64_to_tm()
94 * February 28th 364-th day of the year; in rtc_time64_to_tm()
95 * February 29th 365-th day of the year (if it exists). in rtc_time64_to_tm()
119 year = 100 * century + year_of_century; in rtc_time64_to_tm()
128 * Recall that January 01 is the 306-th day of the year in the in rtc_time64_to_tm()
134 year = year + is_Jan_or_Feb; in rtc_time64_to_tm()
142 tm->tm_year = (int) (year - 1900); in rtc_time64_to_tm()