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 ¶
时间格式化2006-01-02
func (CDate) GormDataType ¶ added in v1.20.8
func (CDate) MarshalJSON ¶
func (*CDate) UnmarshalJSON ¶
type CNTime ¶ added in v1.20.0
时间格式化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
时间格式化15:04:05
func (CSTime) GormDataType ¶ added in v1.20.8
gorm bug mysql time to CSTime
func (CSTime) MarshalJSON ¶ added in v1.20.8
func (*CSTime) UnmarshalJSON ¶ added in v1.20.8
type 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.