From 25e6afd831b94b9735cc6691ee19c8edc921aca7 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 8 Apr 2018 01:14:30 +0100 Subject: working decoding --- app/time_fn.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/time_fn.h (limited to 'app/time_fn.h') 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; + + -- cgit v1.2.3