Home
last modified time | relevance | path

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

/picolibc-3.5.0-3.4.0/newlib/libc/time/
Dgmtime_r.c71 unsigned erayear, yearday, month, day; in gmtime_r() local
100 yearday = eraday - (DAYS_PER_YEAR * erayear + erayear / 4 - erayear / 100); /* [0, 365] */ in gmtime_r()
101 month = (5 * yearday + 2) / 153; /* [0, 11] */ in gmtime_r()
102 day = yearday - (153 * month + 2) / 5 + 1; /* [1, 31] */ in gmtime_r()
106 res->tm_yday = yearday >= DAYS_PER_YEAR - DAYS_IN_JANUARY - DAYS_IN_FEBRUARY ? in gmtime_r()
107 yearday - (DAYS_PER_YEAR - DAYS_IN_JANUARY - DAYS_IN_FEBRUARY) : in gmtime_r()
108 yearday + DAYS_IN_JANUARY + DAYS_IN_FEBRUARY + isleap(erayear); in gmtime_r()