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