Tests for time conversion utils

This commit is contained in:
Deluan
2016-03-08 19:29:56 -05:00
parent 5be236515d
commit e9ab07e4d3
2 changed files with 19 additions and 1 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ package utils
import "time"
func ToTime(millis int64) time.Time {
return time.Unix(0, millis*int64(time.Millisecond))
t := time.Unix(0, millis*int64(time.Millisecond))
return t.Local()
}
func ToMillis(t time.Time) int64 {