Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AdaFruit_RGBLCDShield MCP23017 mbed RTclock
Fork of MCP_test by
Diff: time_helper.cpp
- Revision:
- 13:9641bc42db92
- Parent:
- 12:0fea8ebe6c1a
- Child:
- 14:8b359e1e68f3
diff -r 0fea8ebe6c1a -r 9641bc42db92 time_helper.cpp
--- a/time_helper.cpp Sun Aug 10 16:01:43 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-#include "mbed.h"
-#include "time_helper.h"
-
-void GetTime(tm & out_sTM)
-{
- time_t nTime = time(0);
- tm * pTM = ::localtime(&nTime);
- ::memcpy(&out_sTM,pTM,sizeof(out_sTM));
-}
-
-void SetTime(const tm & in_sTM)
-{
- tm sTM = { 0 };
- memcpy(&sTM,&in_sTM,sizeof(sTM));
-
- time_t nTime = mktime(&sTM);
- set_time(nTime);
-}
