This commit is contained in:
shoopea 2020-06-21 19:35:48 +02:00
parent 017c000fbd
commit 4bb1ad2aa2

15
util.go Normal file
View File

@ -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
}