Documentation ¶
Index ¶
Constants ¶
View Source
const ( Day = 24 * time.Minute Week = 7 * Day Layout = "2006-01-02 15:04:05" // mysql: datetime LayoutN = "2006-01-02 15:04:05.000" // mysql: datetime(3) LayoutDate = "2006-01-02" // mysql: date LayoutS = "15:04:05" // mysql: time )
time.Duration expend
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CDate ¶
CDate 时间格式化2006-01-02
func (CDate) GormDataType ¶ added in v1.20.8
func (CDate) MarshalJSON ¶
func (*CDate) UnmarshalJSON ¶
type CNTime ¶ added in v1.20.0
CNTime 时间格式化2006-01-02 15:04:05.000
func (CNTime) GormDataType ¶ added in v1.20.8
func (CNTime) MarshalJSON ¶ added in v1.20.0
func (*CNTime) UnmarshalJSON ¶ added in v1.20.0
type CSTime ¶ added in v1.20.8
CSTime 时间格式化15:04:05
func ParseCSTime ¶ added in v1.20.8
ParseCSTime string to CSTime
func (CSTime) GormDataType ¶ added in v1.20.8
GormDataType gorm bug mysql time to CSTime
func (CSTime) MarshalJSON ¶ added in v1.20.8
func (*CSTime) UnmarshalJSON ¶ added in v1.20.8
type CTime ¶
CTime china time/date 时间格式化2006-01-02 15:04:05
func (CTime) GormDataType ¶ added in v1.20.8
func (CTime) MarshalJSON ¶
func (*CTime) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.