Versions in this module Expand all Collapse all v1 v1.5.93 Mar 14, 2023 v1.5.92 Mar 13, 2023 Changes in this version + const DateLayout + const TimeLayout + const TimeLayout_1 + const TimeLayout_2 + func DurationToUnit(duration time.Duration) string + func FormatDate(dateStr string) (formatDate string) + func FormatDateTime(timeStr string) (formatTime string) + func GetCurMonthDays() (curMonthDays []string) + func GetCurWeekDays() (curWeekDays []string) + func GetLastMonthDays() (monthDays []string) + func GetRecentSevenDay() (sevenDays []string) + func GetRecentThirtyDay() (thirtyDays []string) + func MonthDays(m time.Month, year int) int + func ParseDate(timeStr string) (date time.Time) + func ParseDateTime(timeStr string) (datetime time.Time) + type Duration time.Duration + func (d *Duration) UnitTime() string + func (d *Duration) UnmarshalText(text []byte) error + func (d Duration) Shrink(c context.Context) (Duration, context.Context, context.CancelFunc) + type Time int64 + func (t *Time) FromDB(bs []byte) error + func (t *Time) Scan(src interface{}) (err error) + func (t Time) Time() time.Time + func (t Time) ToDB() ([]byte, error) + func (t Time) Value() (driver.Value, error)