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