Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

time.h

Committer:
andrewboyson
Date:
2018-01-25
Revision:
26:0421132e6eaf

File content as of revision 26:0421132e6eaf:

#include <time.h>
#include <stdint.h>

extern void   TimeTmUtcToLocal(struct tm* ptm);

extern void   TimeAsciiDateTimeToTm(const char* pDate, const char* pTime, struct tm* ptm);
extern void   TimeToTmLocal(uint32_t time, struct tm* ptm);
extern void   TimeToTmUtc(uint32_t time, struct tm* ptm);

extern time_t TimeFromTmUtc(struct tm* ptm);
extern int    TimePeriodBetween(struct tm* ptmLater, struct tm* ptmEarlier);