![]() |
semf
|
The Clock
class provides real time clock functionality. It can return a DateTime
object with actual date and time information from Rtc
and the Rtc
can be updated by setting a DateTime
object to Clock
.
More...
#include <clock.h>
Public Member Functions | |
virtual | ~Clock ()=default |
virtual DateTime & | now ()=0 |
Returns the momentary date time from Rtc . More... | |
virtual void | set (DateTime &datetimeToSet)=0 |
Sets the DateTime information from datetimeToSet to the Rtc . More... | |
virtual Clock & | operator= (const DateTime &datetimeToSet)=0 |
Copies the date time. More... | |
The Clock
class provides real time clock functionality. It can return a DateTime
object with actual date and time information from Rtc
and the Rtc
can be updated by setting a DateTime
object to Clock
.
|
virtualdefault |
|
pure virtual |
Returns the momentary date time from Rtc
.
Implemented in semf::Clock.
Copies the date time.
datetimeToSet | Source to copy the DateTime information from. |
Implemented in semf::Clock.
|
pure virtual |
Sets the DateTime
information from datetimeToSet
to the Rtc
.
datetimeToSet | date and time source for Rtc . |
Implemented in semf::Clock.