mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-06 06:24:20 -04:00
12 lines
268 B
Go
12 lines
268 B
Go
package common
|
|
|
|
import "testing"
|
|
|
|
func TestTimeFromMiliseconds(t *testing.T) {
|
|
next_day := Date{0x00, 0x00, 0x00, 0x00, 0x05, 0x26, 0x5c, 0x00}
|
|
go_time := next_day.Time()
|
|
if go_time.Unix() != 86400 {
|
|
t.Fatal("Date.Time() did not parse time in milliseconds")
|
|
}
|
|
}
|