date: Remove date lib
DateTimeController can provide everything we need.
This commit is contained in:
parent
959778d770
commit
8baa317e7e
14 changed files with 43 additions and 94 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue