void time_service_apply_timezone(const char *location_id, int16_t fallback_offset_min)
Apply a timezone by IANA location ID with DST support.
esp_err_t time_service_init(void)
Initialize time service state and restore persisted time fallback.
esp_err_t time_service_set_epoch(int64_t epoch)
Set current UTC epoch and persist it as valid time.
void time_service_notify_network_connected(bool connected)
Notify the service about network connectivity changes.
bool time_service_get_local_time(struct tm *out_tm, int64_t *out_epoch)
Get local time adjusted by the configured timezone offset.