git-bug/util/timestamp/timestamp.go
2019-03-01 22:52:54 +01:00

10 lines
127 B
Go

package timestamp
import "time"
type Timestamp int64
func (t Timestamp) Time() time.Time {
return time.Unix(int64(t), 0)
}