diff options
Diffstat (limited to 'wsutil/epochs.h')
-rw-r--r-- | wsutil/epochs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/wsutil/epochs.h b/wsutil/epochs.h index 17d62728..27a88473 100644 --- a/wsutil/epochs.h +++ b/wsutil/epochs.h @@ -62,6 +62,12 @@ * (as they lack a leap year), and one leftover year, 1969, that is * 365 days long. */ -#define EPOCH_DELTA_1601_01_01_00_00_00_UTC G_GUINT64_CONSTANT(11644473600) +#define EPOCH_DELTA_1601_01_01_00_00_00_UTC UINT64_C(11644473600) + +/* + * 2000-01-01 00:00:00 UTC. + * Used by the Zigbee Zigbee Cluster Library protocol. + */ +#define EPOCH_DELTA_2000_01_01_00_00_00_UTC ((unsigned)(((3*365 + 366)*7 + 2*365)*24*3600)) #endif /* __EPOCHS_H__ */ |