25#ifndef DETERMINISTICESPASYNCWEBSERVER_TIME_SOURCE_H
26#define DETERMINISTICESPASYNCWEBSERVER_TIME_SOURCE_H
User-facing configuration for DeterministicESPAsyncWebServer.
const char * detws_time_source_active(void)
Name of the source that satisfied the last detws_time_now(), or nullptr.
void detws_time_source_reset(void)
Clear all registered sources.
uint32_t(* TimeSourceFn)(void)
A time source: returns the current Unix epoch seconds for this source, or 0 if it currently has no va...
bool detws_time_source_add(const char *name, uint8_t priority, TimeSourceFn fn)
Register a time source.
uint32_t detws_time_now(void)
Current best time.
size_t detws_time_http_date(char *out, size_t out_cap)
The current best time (detws_time_now, any registered NTP / GPS / RTC / ... source) formatted as an R...