Searched refs:day_of_year (Results 1 – 2 of 2) sorted by relevance
32 timelib_ull day_of_era, year_of_era, day_of_year, month_portion; in timelib_unixtime2date() local47 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()
456 timelib_sll era, year_of_era, day_of_year, day_of_era; in timelib_epoch_days_from_time() local461 …day_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 10 milliseconds