nginx-proxy-manager-zh/backend/internal/util/time.go

10 lines
233 B
Go
Raw Normal View History

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")
}