Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

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