mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 13:18:14 -05:00
10 lines
233 B
Go
10 lines
233 B
Go
|
package util
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
// UnixMilliToNiceFormat converts a millisecond to nice string
|
||
|
func UnixMilliToNiceFormat(milli int64) string {
|
||
|
t := time.Unix(0, milli*int64(time.Millisecond))
|
||
|
return t.Format("2006-01-02 15:04:05")
|
||
|
}
|