diff options
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; + + |