package times import ( "time" ctime "github.com/cherry-game/cherry/extend/time" ) func MillisToDatetimeFormat(timestamp int64) string { return ctime.CreateFromTimestamp(timestamp).ToDateTimeFormat() } func SecondToDatetimeFormat(seconds int64) string { return MillisToDatetimeFormat(seconds * 1000) } func ParseDateFormat(date string) (time.Time, error) { return time.ParseInLocation(ctime.DateFormat, date, time.Local) }