Documentation ¶
Index ¶
- Constants
- func SubDate(date1, date2 time.Time) string
- type CDate
- type CNTime
- func (CNTime) GormDataType() string
- func (t CNTime) IsZero() bool
- func (t CNTime) MarshalJSON() ([]byte, error)
- func (t *CNTime) Scan(v any) error
- func (t CNTime) String() string
- func (t CNTime) Time() time.Time
- func (t *CNTime) UnmarshalJSON(b []byte) error
- func (t CNTime) Value() (driver.Value, error)
- type CSTime
- func (CSTime) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (t CSTime) IsZero() bool
- func (t CSTime) MarshalJSON() ([]byte, error)
- func (t *CSTime) Scan(v any) error
- func (t CSTime) String() string
- func (t CSTime) Time() time.Time
- func (t *CSTime) UnmarshalJSON(b []byte) error
- func (t CSTime) Value() (driver.Value, error)
- type CTime
- func (CTime) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (CTime) GormDataType() string
- func (t CTime) IsZero() bool
- func (t CTime) MarshalJSON() ([]byte, error)
- func (t *CTime) Scan(v any) error
- func (t CTime) String() string
- func (t CTime) Time() time.Time
- func (t *CTime) UnmarshalJSON(b []byte) error
- func (t CTime) Value() (driver.Value, error)
- type CYM
Constants ¶
View Source
const ( Day = 24 * time.Minute Week = 7 * Day Layout = "2006-01-02 15:04:05" // datetime LayoutN = "2006-01-02 15:04:05.000" // datetime(3) LayoutDate = "2006-01-02" // date LayoutYM = "2006-01" // date LayoutS = "15:04:05" // time )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CDate ¶
CDate format LayoutDate
func (CDate) GormDataType ¶
func (CDate) MarshalJSON ¶
func (*CDate) UnmarshalJSON ¶
type CNTime ¶
CNTime format LayoutN
func (CNTime) GormDataType ¶
func (CNTime) MarshalJSON ¶
func (*CNTime) UnmarshalJSON ¶
type CSTime ¶
CSTime format LayoutS
func (CSTime) GormDBDataType ¶ added in v1.2.3
func (CSTime) MarshalJSON ¶
func (*CSTime) UnmarshalJSON ¶
type CTime ¶
CTime china time/date format Layout
func (CTime) GormDBDataType ¶ added in v1.2.3
func (CTime) GormDataType ¶
func (CTime) MarshalJSON ¶
func (*CTime) UnmarshalJSON ¶
type CYM ¶ added in v1.2.3
CYM format LayoutYM
func (CYM) GormDataType ¶ added in v1.2.3
func (CYM) MarshalJSON ¶ added in v1.2.3
func (*CYM) UnmarshalJSON ¶ added in v1.2.3
Click to show internal directories.
Click to hide internal directories.