time::RealTimeClock * rtc_
CallbackManager< void()> state_callback_
void add_on_state_callback(std::function< void()> &&callback)
bool has_state() const
Return whether this Datetime has gotten a full state yet.
time::RealTimeClock * get_rtc() const
void set_rtc(time::RealTimeClock *rtc)
virtual ESPTime state_as_esptime() const =0
DateTimeStateTrigger(DateTimeBase *parent)
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
Providing packet encoding functions for exchanging data with a remote host.
A more user-friendly version of struct tm from time.h.