2016-02-04 00:07:09 -08:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Date [8]byte
|
|
|
|
|
2016-02-04 01:14:49 -08:00
|
|
|
func (date Date) Time() 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))
|
|
|
|
}
|