Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Sun Dec 02 18:38:22 2018 +0000
Revision:
38:25b2a3c494aa
Parent:
37:330b844f54b6
Child:
41:8cd859cd1475
Removed ClockTicked to force the use of the ms timer instead.; Also reintroduced time_t in the expectation that it will made unsigned or 64bit before 2038.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 37:330b844f54b6 1 #include <stdint.h>
andrewboyson 26:0421132e6eaf 2 #include <time.h>
andrewboyson 26:0421132e6eaf 3
andrewboyson 37:330b844f54b6 4 #include "tm.h"
andrewboyson 37:330b844f54b6 5 #include "clktime.h"
andrewboyson 26:0421132e6eaf 6
andrewboyson 38:25b2a3c494aa 7 void TimeToTmLocal(int64_t time, struct tm* ptm) { TmLocalFromTimeT(time >> TIME_ONE_SECOND_SHIFT, ptm); }
andrewboyson 38:25b2a3c494aa 8 void TimeToTmUtc (int64_t time, struct tm* ptm) { TmUtcFromTimeT(time >> TIME_ONE_SECOND_SHIFT, ptm); }
andrewboyson 38:25b2a3c494aa 9 int64_t TimeFromTmUtc( struct tm* ptm) { return ((int64_t)TmUtcToTimeT(ptm)) << TIME_ONE_SECOND_SHIFT ; }