AceTime
0.5
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
|
A TimeProvider whose time can be set by the end-user. More...
#include <TimeKeeper.h>
Public Member Functions | |
virtual void | setNow (acetime_t epochSeconds)=0 |
Set the time to the indicated seconds. More... | |
![]() | |
virtual | ~TimeProvider () |
Virtual destructor. More... | |
virtual acetime_t | getNow () const =0 |
Return the number of seconds since the AceTime epoch (2000-01-01T00:00:00Z). More... | |
virtual void | sendRequest () const |
Send a time request asynchronously. More... | |
virtual bool | isResponseReady () const |
Return true if a response is ready. More... | |
virtual acetime_t | readResponse () const |
Returns number of seconds since AceTime epoch (2000-01-01). More... | |
Additional Inherited Members | |
![]() | |
static const acetime_t | kInvalidSeconds = LocalTime::kInvalidSeconds |
A TimeProvider whose time can be set by the end-user.
For example, an RTC chip.
Definition at line 19 of file TimeKeeper.h.
|
pure virtual |
Set the time to the indicated seconds.
Calling with a value of kInvalidSeconds indicates an error condition, so the method should do nothing.
Implemented in ace_time::clock::SystemClock.