mirror of
https://github.com/elyby/chrly.git
synced 2024-12-25 06:30:04 +05:30
8 lines
121 B
Go
8 lines
121 B
Go
|
package utils
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
func UnixMillisecond(t time.Time) int64 {
|
||
|
return t.UnixNano() / int64(time.Millisecond)
|
||
|
}
|