mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 02:32:19 +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)
|
||
|
}
|