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:
@@ -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[];
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user