Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

clk/clkutc.h

Committer:
andrewboyson
Date:
2019-01-09
Revision:
49:e4424cc18bcb
Parent:
48:b0f38e523552
Child:
51:826c58fbfaed

File content as of revision 49:e4424cc18bcb:

#include <stdint.h>

extern int     ClkUtcLeapSecondCount;
extern int64_t ClkUtcLeapSecondCount64;
extern void    ClkUtcSetLeapSecondCount(int value);
extern void    ClkUtcAddLeapSecondCount(int value);

extern int     ClkUtcNextLeapMonth1970; //Months since 1970 
extern int64_t ClkUtcNextLeapSecond64;
extern void    ClkUtcSetNextLeapMonth1970(int value);

extern bool    ClkUtcNextLeapEnable;
extern bool    ClkUtcNextLeapBackward;
extern void    ClkUtcSetNextLeapEnable  (bool value);
extern void    ClkUtcSetNextLeapBackward(bool value);

extern void    ClkUtcInit(void);

extern int64_t ClkUtcFromTai(int64_t tai);
extern int64_t ClkUtcToTai  (int64_t utc);
extern void    ClkUtcCheckAdjustLeapSecondCount(int64_t tai);