AceTime
1.1.2
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.
|
6 #ifndef ACE_TIME_CLOCK_H
7 #define ACE_TIME_CLOCK_H
10 #include "../common/common.h"
11 #include "../LocalTime.h"
35 virtual acetime_t
getNow()
const = 0;
virtual acetime_t getNow() const =0
Return the number of seconds since the AceTime epoch (2000-01-01T00:00:00Z).
virtual void sendRequest() const
Send a time request asynchronously.
static const acetime_t kInvalidSeconds
An invalid seconds marker that indicates isError() true.
virtual ~Clock()
Virtual destructor.
virtual void setNow(acetime_t)
Set the time to the indicated seconds.
Base class for objects that provide and store time.
virtual bool isResponseReady() const
Return true if a response is ready.
virtual acetime_t readResponse() const
Returns number of seconds since AceTime epoch (2000-01-01).