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.
Dependents: oldheating gps motorhome heating
Diff: tm/tm.h
- Revision:
- 37:330b844f54b6
- Parent:
- 35:ba9f575aa3c6
- Child:
- 38:25b2a3c494aa
--- a/tm/tm.h Sat Dec 01 17:24:49 2018 +0000 +++ b/tm/tm.h Sat Dec 01 19:13:29 2018 +0000 @@ -1,11 +1,11 @@ +#include <stdint.h> #include <time.h> -#include <stdint.h> - -extern void TmUtcToLocal(struct tm* ptm); -extern void TmFromAsciiDateTime(const char* pDate, const char* pTime, struct tm* ptm); -extern void TmLocalFromTimeT(uint32_t time, struct tm* ptm); -extern void TmUtcFromTimeT(uint32_t time, struct tm* ptm); +extern void TmUtcFromSeconds1970 (int64_t time, struct tm* ptm); +extern void TmLocalFromSeconds1970(int64_t time, struct tm* ptm); +extern int64_t TmUtcToSeconds1970 ( struct tm* ptm); -extern time_t TmUtcToTimeT(struct tm* ptm); -extern int TmSecondsBetween(struct tm* ptmLater, struct tm* ptmEarlier); \ No newline at end of file +extern void TmUtcToLocal(struct tm* ptm); +extern void TmFromAsciiDateTime(const char* pDate, const char* pTime, struct tm* ptm); +extern int TmSecondsBetween(struct tm* ptmLater, struct tm* ptmEarlier); +extern void TmIncrement(struct tm* ptm); \ No newline at end of file