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.
Dependents: CI-data-logger-server WattEye X10Svr SSDP_Server
Diff: TimeInterface.h
- Revision:
- 12:a77f1e9e42b3
- Parent:
- 8:18489e877b0b
--- a/TimeInterface.h Sat Mar 26 20:36:02 2016 +0000 +++ b/TimeInterface.h Mon Apr 11 02:22:45 2016 +0000 @@ -106,6 +106,8 @@ /// Convert a time value structure into an ASCII printable time Www Mmm dd hh:mm:ss yyyy /// + /// An example of the output format would be Mon Jan 1 12:23.34 2016 + /// /// @note Watch out for race conditions as this returns a pointer to a /// shared buffer. /// @note Unlike the standard ctime function, this version DOES NOT append @@ -118,6 +120,8 @@ /// Convert a tm structure into an ASCII printable time Www Mmm dd hh:mm:ss yyyy /// + /// An example of the output format would be Mon Jan 1 12:23.34 2016 + /// /// @note Watch out for race conditions as this returns a pointer to a /// shared buffer. /// @note Unlike the standard ctime function, this version DOES NOT append