Lines Matching refs:day
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;
59 day_of_year, month, day;
65 /* day of the week, 1970-01-01 was a Thursday */
73 * mathematically convenient because the day of the year does not
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).
113 day = ((u16) u32tmp) / 2141;
116 * Recall that January 01 is the 306-th day of the year in the
124 day = day + 1;
132 tm->tm_mday = (int) day;