Lines Matching full:year
54 #define is_leap(year) \ argument
55 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
66 * returns day of the year [0-365]
72 return __mon_yday[is_leap(eft->year)][eft->month-1]+ eft->day -1; in compute_yday()
77 * Don't try to provide a year that's before 1998, please !
85 if ( eft->year < 1998 ) { in compute_wday()
86 printk(KERN_ERR "efirtc: EFI year < 1998, invalid date\n"); in compute_wday()
90 for(y=EFI_RTC_EPOCH; y < eft->year; y++ ) { in compute_wday()
105 eft->year = wtime->tm_year + 1900; in convert_to_efi_time()
125 wtime->tm_year = eft->year - 1900; in convert_from_efi_time()
130 /* day in the year [1-365]*/ in convert_from_efi_time()
322 eft.year, eft.month, eft.day, in efi_rtc_proc_show()
339 alm.year, alm.month, alm.day, in efi_rtc_proc_show()