A time interface class. This class replicates the normal time functions, but goes a couple of steps further. mbed library 82 and prior has a defective gmtime function. Also, this class enables access to setting the time, and adjusting the accuracy of the RTC.

Dependencies:   CalendarPage

Dependents:   CI-data-logger-server WattEye X10Svr SSDP_Server

Revision:
26:9ee3fac64626
Parent:
23:a89b319b552c
Child:
30:2740e128a809
Child:
33:e49b25bdbfa5
--- a/TimeInterface.cpp	Mon Aug 13 00:54:52 2018 +0000
+++ b/TimeInterface.cpp	Mon Jan 14 03:17:30 2019 +0000
@@ -259,6 +259,7 @@
 
 time_t TimeInterface::mktime(struct tm_ex * timeptr)
 {
+    timeptr->tm_tzo_min = get_tzo_min();
     return std::mktime((struct tm *)timeptr);
 }