Home
last modified time | relevance | path

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

/hal_silabs-3.5.0/gecko/service/sleeptimer/src/
Dsl_sleeptimer.c654 uint8_t leap_day = 0; in sl_sleeptimer_convert_time_to_date() local
673 leap_day = TIME_LEAP_DAYS_UP_TO_YEAR(full_year); // Approximates the number of leap days. in sl_sleeptimer_convert_time_to_date()
674 …full_year = (time - leap_day) / (TIME_DAY_PER_YEAR); // Computes the number of year integrating th… in sl_sleeptimer_convert_time_to_date()
675leap_day = TIME_LEAP_DAYS_UP_TO_YEAR(full_year); // Computes the actual number of leap days of th… in sl_sleeptimer_convert_time_to_date()
682 time = (time - leap_day) - (TIME_DAY_PER_YEAR * full_year); // Subtracts days of previous year. in sl_sleeptimer_convert_time_to_date()