9#ifdef USE_TIME_TIMEZONE
Base class for all automation conditions.
This class simplifies creating components that periodically check a state.
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
time_t timestamp_now()
Get the current time as the UTC epoch since January 1st 1970.
ESPTime now()
Get the time in the currently defined timezone.
ESPTime utcnow()
Get the time without any time zone or DST corrections.
LazyCallbackManager< void()> time_sync_callback_
void add_on_time_sync_callback(F &&callback)
void dump_config() override
void synchronize_epoch_(uint32_t epoch)
Report a unix epoch as current time.
bool check(const Ts &...x) override
TimeHasTimeCondition(RealTimeClock *parent)
A more user-friendly version of struct tm from time.h.
bool is_valid(bool check_day_of_week=true, bool check_day_of_year=true) const
Check if this ESPTime is valid (year >= 2019 and the requested fields are in range).
static ESPTime from_epoch_utc(time_t epoch)
Convert an UTC epoch timestamp to a UTC time ESPTime instance.