Home
last modified time | relevance | path

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

/hal_silabs-3.6.0/gecko/service/sleeptimer/src/
Dsl_sleeptimer.c59 #define TIME_DAY_PER_YEAR (365u) macro
60 #define TIME_SEC_PER_YEAR (TIME_SEC_PER_DAY * TIME_DAY_PER_YEAR)
833 …e->day_of_week = compute_day_of_week(((date->year - TIME_NTP_UNIX_EPOCH_DIFF) * TIME_DAY_PER_YEAR) in sl_sleeptimer_build_datetime()
876 date->day_of_week = compute_day_of_week_64((date->year * TIME_DAY_PER_YEAR) in sl_sleeptimer_build_datetime_64()
922 full_year = time / TIME_DAY_PER_YEAR; // Approximates the number of full years in sl_sleeptimer_convert_time_to_date_64()
928 …full_year = (time - leap_day) / TIME_DAY_PER_YEAR; // Computes the number of year integrating the … in sl_sleeptimer_convert_time_to_date_64()
937 time = (time - leap_day) - (TIME_DAY_PER_YEAR * full_year); // Subtracts days of previous year. in sl_sleeptimer_convert_time_to_date_64()