pikapika/go/main/utils/time.go

9 lines
155 B
Go
Raw Normal View History

2021-09-29 23:57:09 +00:00
package utils
import "time"
2021-10-19 10:26:12 +00:00
// Timestamp 获取当前的Unix时间戳
2021-09-29 23:57:09 +00:00
func Timestamp() int64 {
return time.Now().UnixNano() / int64(time.Millisecond)
}