avoid using UnixMilli

This commit is contained in:
c9s 2022-01-26 14:09:35 +08:00
parent a29198f733
commit b2c4cd91a7

View File

@ -12,7 +12,7 @@ import (
)
var numOfDigitsOfUnixTimestamp = len(strconv.FormatInt(time.Now().Unix(), 10))
var numOfDigitsOfMilliSecondUnixTimestamp = len(strconv.FormatInt(time.Now().UnixMilli(), 10))
var numOfDigitsOfMilliSecondUnixTimestamp = len(strconv.FormatInt(time.Now().UnixNano()/int64(time.Millisecond), 10))
var numOfDigitsOfNanoSecondsUnixTimestamp = len(strconv.FormatInt(time.Now().UnixNano(), 10))
type NanosecondTimestamp time.Time