nginx-proxy-manager/backend/internal/util/time.go
Jamie Curnow 4a57956093
More work to support nullable foreign keys
Adds nullable int/uint types
2023-05-30 22:26:44 +10:00

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