date: Remove date lib

DateTimeController can provide everything we need.
This commit is contained in:
Riku Isokoski
2023-02-23 20:00:58 +02:00
parent 959778d770
commit 8baa317e7e
14 changed files with 43 additions and 94 deletions

View File

@@ -67,6 +67,10 @@ namespace Pinetime {
return static_cast<Days>(daysSinceSunday);
}
uint8_t DayOfYear() const {
return localTime.tm_yday + 1;
}
uint8_t Hours() const {
return localTime.tm_hour;
}