Format header files
In my PR updating clang-format, I forgot to also format the headers.
This commit is contained in:
@@ -9,6 +9,7 @@ namespace Pinetime {
|
||||
namespace System {
|
||||
class SystemTask;
|
||||
}
|
||||
|
||||
namespace Controllers {
|
||||
class DateTime {
|
||||
public:
|
||||
@@ -51,24 +52,31 @@ namespace Pinetime {
|
||||
void SetTimeZone(int8_t timezone, int8_t dst);
|
||||
|
||||
void UpdateTime(uint32_t systickCounter);
|
||||
|
||||
uint16_t Year() const {
|
||||
return year;
|
||||
}
|
||||
|
||||
Months Month() const {
|
||||
return month;
|
||||
}
|
||||
|
||||
uint8_t Day() const {
|
||||
return day;
|
||||
}
|
||||
|
||||
Days DayOfWeek() const {
|
||||
return dayOfWeek;
|
||||
}
|
||||
|
||||
uint8_t Hours() const {
|
||||
return hour;
|
||||
}
|
||||
|
||||
uint8_t Minutes() const {
|
||||
return minute;
|
||||
}
|
||||
|
||||
uint8_t Seconds() const {
|
||||
return second;
|
||||
}
|
||||
@@ -117,9 +125,11 @@ namespace Pinetime {
|
||||
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> CurrentDateTime() const {
|
||||
return currentDateTime;
|
||||
}
|
||||
|
||||
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> UTCDateTime() const {
|
||||
return currentDateTime - std::chrono::seconds((tzOffset + dstOffset) * 15 * 60);
|
||||
}
|
||||
|
||||
std::chrono::seconds Uptime() const {
|
||||
return uptime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user