Lines Matching refs:year
55 #define is_leap(year) \
56 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
67 * returns day of the year [0-365]
73 return __mon_yday[is_leap(eft->year)][eft->month-1]+ eft->day -1;
78 * Don't try to provide a year that's before 1998, please !
86 if ( eft->year < 1998 ) {
87 printk(KERN_ERR "efirtc: EFI year < 1998, invalid date\n");
91 for(y=EFI_RTC_EPOCH; y < eft->year; y++ ) {
106 eft->year = wtime->tm_year + 1900;
126 wtime->tm_year = eft->year - 1900;
131 /* day in the year [1-365]*/
319 eft.year, eft.month, eft.day,
335 alm.year, alm.month, alm.day,