This is a library for managing the mbed real time clock, including functions for setting and getting the rtc in text format, getting and setting the timezone offset, and getting and setting the calibration register, both directly, and by using an adjustment API to automatically set the calibration value.

Dependents:   mbed_escm2000

Files at this revision

API Documentation at this revision

Comitter:
foxbrianr
Date:
Thu Jul 25 00:43:33 2019 +0000
Parent:
6:a517fee06e2e
Commit message:
Baseline for testing

Changed in this revision

TimeUtilities.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TimeUtilities.cpp	Wed Nov 02 01:32:07 2011 +0000
+++ b/TimeUtilities.cpp	Thu Jul 25 00:43:33 2019 +0000
@@ -88,7 +88,7 @@
     ctTime = tValue + hOffset * 3600 + SignOf(hOffset) * mOffset * 60;
     strcpy(buf, ctime(&ctTime));
     buf[strlen(buf)-1] = '\0';   // remove the \n
-    sprintf(buf + strlen(buf), " (tzo: %2i:%02i)", hOffset, mOffset);
+    //sprintf(buf + strlen(buf), " (tzo: %2i:%02i)", hOffset, mOffset);
 }