Searched refs:era (Results 1 – 2 of 2) sorted by relevance
31 timelib_sll days, era, t; in timelib_unixtime2date() local43 era = (days >= 0 ? days : days - DAYS_PER_ERA + 1) / DAYS_PER_ERA; in timelib_unixtime2date()44 day_of_era = days - era * DAYS_PER_ERA; in timelib_unixtime2date()46 *y = year_of_era + era * YEARS_PER_ERA; in timelib_unixtime2date()
456 timelib_sll era, year_of_era, day_of_year, day_of_era; in timelib_epoch_days_from_time() local459 era = (y >= 0 ? y : y - 399) / YEARS_PER_ERA; in timelib_epoch_days_from_time()460 …year_of_era = y - era * YEARS_PER_ERA; // [… in timelib_epoch_days_from_time()464 return era * DAYS_PER_ERA + day_of_era - HINNANT_EPOCH_SHIFT; in timelib_epoch_days_from_time()
Completed in 6 milliseconds