Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/lib/libc/common/source/time/
Dgmtime_r.c45 unsigned int doy = doe - (365U * yoe + yoe / 4U - yoe / 100U); in time_civil_from_days() local
46 unsigned int mp = (5U * doy + 2U) / 153U; in time_civil_from_days()
47 unsigned int d = doy - (153U * mp + 2U) / 5U + 1U; in time_civil_from_days()
66 if (doy >= 306U) { in time_civil_from_days()
67 tp->tm_yday = doy - 306U; in time_civil_from_days()
69 tp->tm_yday = doy + 59U + (((yoe % 4U == 0U) && (yoe % 100U != 0U)) || (yoe == 0U)); in time_civil_from_days()
/Zephyr-Core-3.7.0/drivers/counter/
Dcounter_cmos.c115 unsigned doy; in hinnant() local
122 doy = (153 * (m + ((m > 2) ? -3 : 9)) + 2)/5 + d - 1; in hinnant()
123 doe = yoe * 365 + yoe / 4 - yoe / 100 + doy; in hinnant()
/Zephyr-Core-3.7.0/lib/utils/
Dtimeutil.c39 unsigned int doy = (153U * (m + ((m > 2) ? -3 : 9)) + 2U) / 5U + d; in time_days_from_civil() local
40 unsigned int doe = yoe * 365U + yoe / 4U - yoe / 100U + doy; in time_days_from_civil()