summaryrefslogtreecommitdiffstats
path: root/time_fn.h
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2019-02-26 10:56:52 +0000
committerfishsoupisgood <github@madingley.org>2019-02-26 10:56:52 +0000
commit9b0002fc40f4d8b97cf2064910a9ded467f29276 (patch)
tree637a1cc1dd9c21c8f486dbe03db6a830ebbe768c /time_fn.h
downloadgen_msf-9b0002fc40f4d8b97cf2064910a9ded467f29276.tar.gz
gen_msf-9b0002fc40f4d8b97cf2064910a9ded467f29276.tar.bz2
gen_msf-9b0002fc40f4d8b97cf2064910a9ded467f29276.zip
fish
Diffstat (limited to 'time_fn.h')
-rw-r--r--time_fn.h19
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;
+
+