46 m_dateTime = datetimeToSet;
app::Clock & operator=(const DateTime &datetimeToSet) override
Copies the date time.
Clock(Rtc &rtc)
Constructor.
DateTime & now() override
Returns the momentary date time from Rtc.
void set(DateTime &datetimeToSet) override
Sets the DateTime information from datetimeToSet to the Rtc.
uint16_t year() const
Returns the year.
uint8_t day() const
Returns the day.
Month month() const
Returns the month.
The DateTime class provides date and time functionality as a point of time. It combines features of t...
bool setDateTime(uint16_t millisecond, uint8_t second, uint8_t minute, uint8_t hour, uint8_t day, Month month, uint16_t year)
Sets date time information and system clock if Rtc is registered.
Interface for the real time clock.
virtual uint8_t second() const =0
Get the seconds from the current time.
virtual void setMonth(uint8_t month)=0
For set a new date.
virtual uint16_t millisecond()=0
Get the milliseconds from the current time.
virtual void setMinute(uint8_t minute)=0
For set a new time.
virtual void setHour(uint8_t hour)=0
For set a new time.
virtual uint8_t day() const =0
virtual uint16_t year() const =0
Get the current year.
virtual void setSecond(uint8_t second)=0
For set a new time.
virtual uint8_t hour() const =0
Get the hours from the current time.
virtual uint8_t month() const =0
Get the current month.
virtual uint8_t minute() const =0
Get the minutes from the current time.
virtual void setYear(uint16_t year)=0
For set a new date.
virtual void setDay(uint8_t day)=0
For set a new date.
uint8_t second() const
Returns the seconds from system clock or static value.
uint8_t minute() const
Returns the minutes.
uint8_t hour() const
Returns the hours.
The Clock class provides real time clock functionality. It can return a DateTime object with actual d...