Files
go-i2p/lib/common/date.go

13 lines
166 B
Go
Raw Normal View History

2016-02-04 00:07:09 -08:00
package common
import (
"time"
)
type Date [8]byte
func GoDate(date Date) time.Time {
2016-02-04 00:54:51 -08:00
seconds := Integer(date[:])
2016-02-04 00:07:09 -08:00
return time.Unix(0, int64(seconds*1000000))
}