From 4bb1ad2aa231d54b9f72d76aa7b47c69bf6c8f15 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 21 Jun 2020 19:35:48 +0200 Subject: [PATCH] test --- util.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 util.go diff --git a/util.go b/util.go new file mode 100644 index 0000000..a2ab8af --- /dev/null +++ b/util.go @@ -0,0 +1,15 @@ +package main + +import ( + "time" +) + +func toDate(d uint32) time.Time { + t, _ := time.Parse("2006-01-02T15:04:05+07:00", "0001-01-01 00:00:00+00:00") + t = t.AddDate(0, 0, int(d)) + return t +} + +func fromDate(t time.Time) uint32 { + return 0 +}