Skip to main content

Module esptime

Module esptime 

Source
Expand description

UTC wall-clock time via a HTTP sync from timeapi.io.

Time is fetched once at startup. Subsequent calls to EspTime::now compute the current time by adding the elapsed duration since the fetch.

Structsยง

EspTime
TimeApiResponse ๐Ÿ”’
TimeAPI response format for easy parsing.