Home
last modified time | relevance | path

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

/picolibc-3.5.0-3.4.0/newlib/libc/time/
Dgmtime_r.c72 unsigned long eraday; in gmtime_r() local
97 eraday = days - era * DAYS_PER_ERA; /* [0, 146096] */ in gmtime_r()
98 erayear = (eraday - eraday / (DAYS_PER_4_YEARS - 1) + eraday / DAYS_PER_CENTURY - in gmtime_r()
99 eraday / (DAYS_PER_ERA - 1)) / 365; /* [0, 399] */ in gmtime_r()
100 yearday = eraday - (DAYS_PER_YEAR * erayear + erayear / 4 - erayear / 100); /* [0, 365] */ in gmtime_r()