git-bug/util/timestamp/timestamp.go

10 lines
127 B
Go
Raw Normal View History

package timestamp
2018-09-30 12:00:39 +03:00
import "time"
type Timestamp int64
func (t Timestamp) Time() time.Time {
return time.Unix(int64(t), 0)
}