1
0
Fork 0

MonthShortToStringLow(): new, counterpart to existing functions

This commit is contained in:
Julian Foad 2024-05-10 09:24:07 +01:00
parent 225ba57a45
commit 118d23cd4c
2 changed files with 5 additions and 0 deletions

View file

@ -144,6 +144,10 @@ const char* DateTime::DayOfWeekShortToString() const {
return DaysStringShort[static_cast<uint8_t>(DayOfWeek())];
}
const char* DateTime::MonthShortToStringLow() const {
return MonthsStringLow[static_cast<uint8_t>(Month())];
}
const char* DateTime::MonthShortToStringLow(Months month) {
return MonthsStringLow[static_cast<uint8_t>(month)];
}

View file

@ -121,6 +121,7 @@ namespace Pinetime {
const char* MonthShortToString() const;
const char* DayOfWeekShortToString() const;
const char* MonthShortToStringLow() const;
static const char* MonthShortToStringLow(Months month);
static const char* DayOfWeekShortToStringLow(Days day);