Home
last modified time | relevance | path

Searched refs:day_of_year (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/rtc/
Dlib.c59 day_of_year, month, day; in rtc_time64_to_tm() local
105 day_of_year = lower_32_bits(u64tmp) / 2939745 / 4; in rtc_time64_to_tm()
111 u32tmp = 2141 * day_of_year + 132377; in rtc_time64_to_tm()
119 is_Jan_or_Feb = day_of_year >= 306; in rtc_time64_to_tm()
126 day_of_year = is_Jan_or_Feb ? in rtc_time64_to_tm()
127 day_of_year - 306 : day_of_year + 31 + 28 + is_leap_year; in rtc_time64_to_tm()
133 tm->tm_yday = (int) day_of_year + 1; in rtc_time64_to_tm()
Drtc-moxart.c64 static int day_of_year[12] = { 0, 31, 59, 90, 120, 151, 181, variable
225 tm->tm_yday = day_of_year[tm->tm_mon]; in moxart_rtc_read_time()
/Linux-v6.6/kernel/time/
Dtimeconv.c49 u32 u32tmp, day_of_century, year_of_century, day_of_year, month, day; in time64_to_tm() local
114 day_of_year = lower_32_bits(u64tmp) / 2939745 / 4; in time64_to_tm()
119 u32tmp = 2141 * day_of_year + 132377; in time64_to_tm()
127 is_Jan_or_Feb = day_of_year >= 306; in time64_to_tm()
133 day_of_year += is_Jan_or_Feb ? -306 : 31 + 28 + is_leap_year; in time64_to_tm()
139 result->tm_yday = (int) day_of_year; in time64_to_tm()