summaryrefslogtreecommitdiff
path: root/wasp/boards/simulator
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-19 19:32:06 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-19 19:57:08 (GMT)
commitf689c90498b58a5198bb56a2d3d5211db9670283 (patch)
treed5b319751bd62e0e0de74c83b7323e624f5291d3 /wasp/boards/simulator
parentc9ab38d75722027ee63c0626dde873045afbfc0b (diff)
wasp: Add full dd-mm-yyyy calender tracking
Diffstat (limited to 'wasp/boards/simulator')
-rw-r--r--wasp/boards/simulator/watch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wasp/boards/simulator/watch.py b/wasp/boards/simulator/watch.py
index 75bd232..6e7fcee 100644
--- a/wasp/boards/simulator/watch.py
+++ b/wasp/boards/simulator/watch.py
@@ -74,6 +74,9 @@ class RTC(object):
self.uptime = now
return True
+ def get_localtime(self):
+ return time.localtime()
+
def get_time(self):
now = time.localtime()
return (now[3], now[4], now[5])