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.
Revision 4:dfb2e93f804a, committed 2011-07-16
- Comitter:
- WiredHome
- Date:
- Sat Jul 16 16:57:22 2011 +0000
- Parent:
- 3:524ad47afdc7
- Child:
- 5:fbbdf57675c3
- Commit message:
- Minor documentation update, no functional change
Changed in this revision
TimeUtilities.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TimeUtilities.h Thu Jun 16 21:11:44 2011 +0000 +++ b/TimeUtilities.h Sat Jul 16 16:57:22 2011 +0000 @@ -20,6 +20,7 @@ /// @note /// History /// v1.02 +/// \li 20110716 Minor documentation update /// \li 20110616 Minor documentation updates /// v1.01 29 May 2011 /// \li Slightly improved documentation. @@ -60,15 +61,15 @@ /// RealTimeClock rtc; /// /// void main() { -/// bool success; -/// char TimeTest[] = "05/29/2011 14:15:18 (-6:00)"; -/// char buf[50]; -/// success = rtc.SetTime(Test); +/// bool success; +/// char TimeTest[] = "05/29/2011 14:15:18 (-6:00)"; +/// char buf[50]; +/// success = rtc.SetTime(TimeTest); /// rtc.GetTimeString(buf); /// printf("success: %i, time: %s\n", success, buf); /// } -/// prints -/// "success: 1, time: Sun May 29 14:15:18 2011 (tzo: -6:00)" +/// prints the following: +/// success: 1, time: Sun May 29 14:15:18 2011 (tzo: -6:00) /// @endcode /// class RealTimeClock