From f049f382f03c946b967e1a53368c82f845299cb4 Mon Sep 17 00:00:00 2001 From: JF Date: Sat, 18 Jan 2020 18:17:52 +0100 Subject: Encapsulate the drawing of the screen into Screens classes. --- src/Components/DateTime/DateTimeController.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Components/DateTime') diff --git a/src/Components/DateTime/DateTimeController.h b/src/Components/DateTime/DateTimeController.h index 632fafe6..9e7392cd 100644 --- a/src/Components/DateTime/DateTimeController.h +++ b/src/Components/DateTime/DateTimeController.h @@ -19,6 +19,8 @@ namespace Pinetime { uint8_t Hours() const { return hour; } uint8_t Minutes() const { return minute; } uint8_t Seconds() const { return second; } + + std::chrono::time_point CurrentDateTime() const { return currentDateTime; } private: uint16_t year = 0; Months month = Months::Unknown; -- cgit v1.2.3-70-g09d2