mirror of
https://github.com/elyby/chrly.git
synced 2024-12-23 21:50:03 +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)
|
||
|
}
|