Searched refs:year_of_century (Results 1 – 2 of 2) sorted by relevance
/linux-6.6.21/kernel/time/ |
D | timeconv.c | 49 u32 u32tmp, day_of_century, year_of_century, day_of_year, month, day; in time64_to_tm() local 113 year_of_century = upper_32_bits(u64tmp); in time64_to_tm() 116 year = 100 * century + year_of_century; in time64_to_tm() 117 is_leap_year = year_of_century ? !(year_of_century % 4) : !(century % 4); in time64_to_tm()
|
/linux-6.6.21/drivers/rtc/ |
D | lib.c | 58 u32 u32tmp, udays, century, day_of_century, year_of_century, year, in rtc_time64_to_tm() local 104 year_of_century = upper_32_bits(u64tmp); in rtc_time64_to_tm() 107 year = 100 * century + year_of_century; in rtc_time64_to_tm() 108 is_leap_year = year_of_century != 0 ? in rtc_time64_to_tm() 109 year_of_century % 4 == 0 : century % 4 == 0; in rtc_time64_to_tm()
|