10#ifndef SEMF_UTILS_SYSTEM_DATE_H_
11#define SEMF_UTILS_SYSTEM_DATE_H_
108 uint16_t
year()
const;
203 Month m_month = Month::January;
The Date class provides date functions.
bool operator>=(const Date &dateToCompareWith) const
Compares this date with other.
uint16_t year() const
Returns the year.
bool operator<(const Date &dateToCompareWith) const
Compares this date with other.
bool operator==(const Date &dateToCompareWith) const
Compares this date with other.
static bool isValid(uint8_t day, Month month, uint16_t year)
Returns if the given date is valid.
void addYears(int32_t years)
Adds years to this date.
void addDays(int32_t days)
Adds days to this date.
Weekday weekday() const
Returns the day in the week of the actual Date.
bool setMonth(Month month)
Sets a month.
static bool isLeapYear(uint16_t year)
Returns if a specific year is a leap year or not.
bool operator>(const Date &dateToCompareWith) const
Compares this date with other.
static uint8_t daysInMonth(Month month, uint16_t year)
Returns the number of days in a specific month and year.
bool setDay(uint8_t day)
Sets a day.
uint8_t day() const
Returns the day.
bool setYear(uint16_t year)
Sets a year.
Month month() const
Returns the month.
bool operator<=(const Date &dateToCompareWith) const
Compares this date with other.
bool operator!=(const Date &dateToCompareWith) const
Compares this date with other.
void addMonths(int32_t months)
Adds months to this date.
bool setDate(uint8_t day, Month month, uint16_t year)
Sets date information.