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:
1:2ee90f546f54
Parent:
0:61112ca9193b
Child:
2:65e0a25c7551
--- a/TimeInterface.cpp	Sun Jun 08 00:18:43 2014 +0000
+++ b/TimeInterface.cpp	Sat Jun 14 12:34:53 2014 +0000
@@ -35,6 +35,11 @@
     return std::time(timer);
 }
 
+time_t TimeInterface::timelocal(time_t* timer)
+{
+    return std::time(timer) + 60 * get_tzo_min();
+}
+
 char * TimeInterface::ctime(const time_t * timer)
 {
     char * p = std::ctime(timer);