8 #include "common/DateStrings.h"
27 const uint8_t LocalDate::sDayOfWeek[12] = {
43 const uint8_t LocalDate::sDaysInMonth[12] = {
60 printer.print(F(
"<Invalid LocalDate>"));
65 using ace_common::printPad2To;
66 printer.print(
year());
68 printPad2To(printer, mMonth,
'0');
70 printPad2To(printer, mDay,
'0');
Class that translates a numeric month (1-12) or dayOfWeek (1-7) into a human readable string.
const char * dayOfWeekLongString(uint8_t dayOfWeek)
Return the short dayOfWeek name.
bool isError() const
Return true if any component indicates an error condition.
uint8_t dayOfWeek() const
Calculate the day of week given the (year, month, day).
void printTo(Print &printer) const
Print LocalDate to 'printer' in ISO 8601 format, along with the day of week.
int16_t year() const
Return the year.