mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
4a57956093
Adds nullable int/uint types
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")
|
|
}
|