diff options
Diffstat (limited to 'time_fn.h')
-rw-r--r-- | time_fn.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/time_fn.h b/time_fn.h new file mode 100644 index 0000000..2409eeb --- /dev/null +++ b/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 { + int64_t s; + int64_t ns; +} EPOCH; + + |