Home
last modified time | relevance | path

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

/PHP-8.2/ext/date/lib/
H A Dunixtime2tm.c32 timelib_ull day_of_era, year_of_era, day_of_year, month_portion; in timelib_unixtime2date() local
47 day_of_year = day_of_era - (DAYS_PER_YEAR * year_of_era + year_of_era / 4 - year_of_era / 100); in timelib_unixtime2date()
48 month_portion = (5 * day_of_year + 2) / 153; in timelib_unixtime2date()
49 *d = day_of_year - (153 * month_portion + 2) / 5 + 1; in timelib_unixtime2date()
H A Dtm2unixtime.c456 timelib_sll era, year_of_era, day_of_year, day_of_era; in timelib_epoch_days_from_time() local
461day_of_year = (153 * (time->m + (time->m > 2 ? -3 : 9)) + 2)/5 + time->d - 1; // [… in timelib_epoch_days_from_time()
462 …day_of_era = year_of_era * DAYS_PER_YEAR + year_of_era / 4 - year_of_era / 100 + day_of_year; // [… in timelib_epoch_days_from_time()

Completed in 6 milliseconds