gottdad/util.go

16 lines
240 B
Go
Raw Normal View History

2020-06-21 19:35:48 +02:00
package main
import (
"time"
)
func toDate(d uint32) time.Time {
2020-06-21 19:36:45 +02:00
t, _ := time.Parse("2006-01-02T15:04:05+07:00", "0000-01-01 00:00:00+00:00")
2020-06-21 19:38:21 +02:00
t = t.AddDate(0, 0, int(d-366))
2020-06-21 19:35:48 +02:00
return t
}
func fromDate(t time.Time) uint32 {
return 0
}