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 ¶
func (CDate) MarshalJSON ¶
func (*CDate) UnmarshalJSON ¶
type CNTime ¶
CNTime 时间格式化2006-01-02 15:04:05.000
func (CNTime) GormDataType ¶
func (CNTime) MarshalJSON ¶
func (*CNTime) UnmarshalJSON ¶
type CSTime ¶
CSTime 时间格式化15:04:05
func (CSTime) GormDataType ¶
GormDataType gorm bug mysql time to CSTime
func (CSTime) MarshalJSON ¶
func (*CSTime) UnmarshalJSON ¶
type CTime ¶
CTime china time/date 时间格式化2006-01-02 15:04:05
func (CTime) GormDataType ¶
func (CTime) MarshalJSON ¶
func (*CTime) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.