Documentation
¶
Index ¶
- func Add(date time.Time, iT ...int) time.Time
- func AddDay(date time.Time, iCount int) time.Time
- func AddHour(date time.Time, iCount int) time.Time
- func AddMinute(date time.Time, iCount int) time.Time
- func AddMonth(date time.Time, iCount int) time.Time
- func AddYear(date time.Time, iCount int) time.Time
- func Current(formatStr ...string) string
- func Format(date time.Time, formatStr string) string
- func GapDay(t1, t2 interface{}) (day int)
- func GapHour(t1, t2 interface{}) (hour int)
- func GapMinute(t1, t2 interface{}) (hour int)
- func GapMonth(t1, t2 interface{}) (month int)
- func GapYear(t1, t2 interface{}) (year int)
- func IsTime(str string) bool
- func MilliSecond() int64
- func NanoSecond() int64
- func Second() int64
- func ToDate(str string) time.Time
- func Today(formatStr ...string) string
- func TodayEd() string
- func TodaySt() string
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Time ¶
自定义时间类型
func (*Time) MarshalJSON ¶
重写MarshalJSON方法来实现gorm查询时间字段事数据解析
func (*Time) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.