Exposed Month and DayOfWeek texts in DateTimeController

Added static methods to return the text of a given month
or dayOfWeek.
This commit is contained in:
Tim Taenny
2021-07-09 17:32:48 +02:00
parent 06dfe14251
commit 899bee2cf5
2 changed files with 45 additions and 9 deletions

View File

@@ -66,6 +66,14 @@ namespace Pinetime {
const char* DayOfWeekToStringLow();
const char* DayOfWeekShortToStringLow();
static const char* MonthShortToString(Months month);
static const char* MonthShortToStringLow(Months month);
static const char* MonthsToStringLow(Months month);
static const char* DayOfWeekToString(Days dayOfWeek);
static const char* DayOfWeekShortToString(Days dayOfWeek);
static const char* DayOfWeekToStringLow(Days dayOfWeek);
static const char* DayOfWeekShortToStringLow(Days dayOfWeek);
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> CurrentDateTime() const {
return currentDateTime;
}
@@ -100,4 +108,4 @@ namespace Pinetime {
static char const* MonthsLow[];
};
}
}
}