mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +00:00
avoid using UnixMilli
This commit is contained in:
parent
a29198f733
commit
b2c4cd91a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user