Searched refs:tm (Results 1 – 5 of 5) sorted by relevance
/hal_rpi_pico-latest/src/common/pico_util/ |
D | datetime.c | 10 __datetime_weak struct tm * pico_localtime_r(const time_t *time, struct tm *tm) { in pico_localtime_r() argument 11 return localtime_r(time, tm); in pico_localtime_r() 14 __datetime_weak time_t pico_mktime(struct tm *tm) { in pico_mktime() argument 15 return mktime(tm); in pico_mktime() 59 void datetime_to_tm(const datetime_t *dt, struct tm *tm) { in datetime_to_tm() argument 60 tm->tm_year = dt->year - 1900; in datetime_to_tm() 61 tm->tm_mon = dt->month - 1; in datetime_to_tm() 62 tm->tm_mday = dt->day; in datetime_to_tm() 63 tm->tm_hour = dt->hour; in datetime_to_tm() 64 tm->tm_min = dt->min; in datetime_to_tm() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_aon_timer/ |
D | aon_timer.c | 28 static bool ts_to_tm(const struct timespec *ts, struct tm *tm) { in ts_to_tm() argument 29 return pico_localtime_r(&ts->tv_sec, tm) != NULL; in ts_to_tm() 33 static bool tm_to_ts(const struct tm *tm, struct timespec *ts) { in tm_to_ts() argument 34 struct tm tm_clone = *tm; in tm_to_ts() 42 struct tm tm; in aon_timer_set_time() local 43 bool ok = pico_localtime_r(&ts->tv_sec, &tm); in aon_timer_set_time() 44 if (ok) aon_timer_set_time_calendar(&tm); in aon_timer_set_time() 54 bool aon_timer_set_time_calendar(const struct tm *tm) { in aon_timer_set_time_calendar() argument 57 tm_to_datetime(tm, &dt); in aon_timer_set_time_calendar() 62 if (tm_to_ts(tm, &ts)) { in aon_timer_set_time_calendar() [all …]
|
/hal_rpi_pico-latest/src/common/pico_util/include/pico/util/ |
D | datetime.h | 39 void datetime_to_tm(const datetime_t *dt, struct tm *tm); 40 void tm_to_datetime(const struct tm *tm, datetime_t *dt); 55 struct tm *pico_localtime_r(const time_t *time, struct tm *tm); 63 time_t pico_mktime(struct tm *tm);
|
/hal_rpi_pico-latest/src/rp2_common/pico_aon_timer/include/pico/ |
D | aon_timer.h | 119 bool aon_timer_start_calendar(const struct tm *tm); 153 bool aon_timer_set_time_calendar(const struct tm *tm); 181 bool aon_timer_get_time_calendar(struct tm *tm); 233 aon_timer_alarm_handler_t aon_timer_enable_alarm_calendar(const struct tm *tm, aon_timer_alarm_hand…
|
/hal_rpi_pico-latest/src/rp2_common/pico_clib_interface/include/llvm_libc/ |
D | time.h | 17 struct tm* localtime_r(const time_t* timer, struct tm* buf);
|