diff options
author | root <root@lab.panaceas.james.local> | 2018-04-08 01:14:30 +0100 |
---|---|---|
committer | root <root@lab.panaceas.james.local> | 2018-04-08 01:14:30 +0100 |
commit | 25e6afd831b94b9735cc6691ee19c8edc921aca7 (patch) | |
tree | cc194e7cb067c929b3e8bc9c03552d2d300c301b /app/time_fn.h | |
download | clock-25e6afd831b94b9735cc6691ee19c8edc921aca7.tar.gz clock-25e6afd831b94b9735cc6691ee19c8edc921aca7.tar.bz2 clock-25e6afd831b94b9735cc6691ee19c8edc921aca7.zip |
working decoding
Diffstat (limited to 'app/time_fn.h')
-rw-r--r-- | app/time_fn.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/time_fn.h b/app/time_fn.h new file mode 100644 index 0000000..7cf75d3 --- /dev/null +++ b/app/time_fn.h @@ -0,0 +1,19 @@ +typedef struct { + unsigned year; + unsigned is_leap; + unsigned jday; + unsigned month; + unsigned mday; + unsigned wday; + unsigned hour; + unsigned minute; + unsigned second; + unsigned nanosecond; +} UTC; + +typedef struct { + uint64_t s; + uint64_t ns; +} EPOCH; + + |