10#ifndef SEMF_UTILS_SYSTEM_DATETIME_H_
11#define SEMF_UTILS_SYSTEM_DATETIME_H_
The Date class provides date functions.
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 operator==(const DateTime &other) const
Compares this date time with other.
virtual ~DateTime()=default
void addHours(int32_t hours)
Adds hours to this datetime.
uint64_t unixTimeInSeconds() const
Returns the date time in seconds since the 1 January 1970.
bool operator<=(const DateTime &other) const
Compares this date time with other.
bool operator>=(const DateTime &other) const
Compares this date time with other.
bool operator>(const DateTime &other) const
Compares this date time with other.
bool operator!=(const DateTime &other) const
Compares this date time with other.
bool operator<(const DateTime &other) const
Compares this date time with other.
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.
The Time class provides clock time functions.
uint16_t millisecond() const
Returns the milliseconds from system clock or static value.
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.