summaryrefslogtreecommitdiff
path: root/src/Components/DateTime/DateTimeController.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-01-18 18:17:52 +0100
committerJF <jf@codingfield.com>2020-01-18 18:17:52 +0100
commitf049f382f03c946b967e1a53368c82f845299cb4 (patch)
treeca3da186765e5d0bc89a310d2c648bc12ff189d3 /src/Components/DateTime/DateTimeController.h
parentf14ba4a7e336607f88548963213100cf1478290c (diff)
Encapsulate the drawing of the screen into Screens classes.
Diffstat (limited to 'src/Components/DateTime/DateTimeController.h')
-rw-r--r--src/Components/DateTime/DateTimeController.h2
1 files changed, 2 insertions, 0 deletions
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<std::chrono::system_clock, std::chrono::milliseconds> CurrentDateTime() const { return currentDateTime; }
private:
uint16_t year = 0;
Months month = Months::Unknown;