Home
last modified time | relevance | path

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

/hal_silabs-3.5.0/gecko/service/sleeptimer/src/
Dsl_sleeptimer.c63 #define TIME_LEAP_DAYS_UP_TO_YEAR(year) (((year - 3) / 4) + 1) argument
139 static bool is_leap_year(uint16_t year);
612 uint16_t year, in sl_sleeptimer_build_datetime() argument
625 date->year = ((year < TIME_NTP_EPOCH) ? year : (year - TIME_NTP_EPOCH)); in sl_sleeptimer_build_datetime()
638 date->day_of_year = compute_day_of_year(date->month, date->month_day, is_leap_year(date->year)); in sl_sleeptimer_build_datetime()
639 …date->day_of_week = compute_day_of_week(((date->year - TIME_NTP_UNIX_EPOCH_DIFF) * TIME_DAY_PER_Y… in sl_sleeptimer_build_datetime()
640 … + TIME_LEAP_DAYS_UP_TO_YEAR(date->year - TIME_NTP_UNIX_EPOCH_DIFF) in sl_sleeptimer_build_datetime()
677 …date->year = TIME_NTP_UNIX_EPOCH_DIFF + full_year; // Year in date struct must be based on a 1900 … in sl_sleeptimer_convert_time_to_date()
678 if (is_leap_year(date->year)) { in sl_sleeptimer_convert_time_to_date()
711 …full_year = (date->year - TIME_NTP_UNIX_EPOCH_DIFF); // Timestamp returned must follow the U… in sl_sleeptimer_convert_date_to_time()
[all …]
/hal_silabs-3.5.0/gecko/service/sleeptimer/inc/
Dsl_sleeptimer.h117 uint16_t year; ///< Year, based on a 0 Epoch or a 1900 Epoch. member
406 uint16_t year,
/hal_silabs-3.5.0/zephyr/blobs/license/
DMSLA.txt211 provided to you at no cost for one year from date that you download the