Documentation ¶
Index ¶
- Constants
- type DateTime
- func (dt *DateTime) Assign(s string) error
- func (dt DateTime) Format(fmt string) string
- func (dt DateTime) MarshalJSON() ([]byte, error)
- func (dt *DateTime) Parse(fmt string, s string) error
- func (dt DateTime) PureDate() PureDate
- func (dt DateTime) PureTime() PureTime
- func (dt *DateTime) Set(t time.Time)
- func (dt DateTime) String() string
- func (dt DateTime) Time() time.Time
- func (dt *DateTime) UnmarshalJSON(bs []byte) error
- type FullDateTime
- func (fdt *FullDateTime) AddMicrosecond(microsecond int)
- func (fdt *FullDateTime) AddMillisecond(millisecond int)
- func (fdt *FullDateTime) Assign(s string) error
- func (fdt FullDateTime) Format(fmt string) string
- func (fdt FullDateTime) MarshalJSON() ([]byte, error)
- func (fdt FullDateTime) Microsecond() int
- func (fdt FullDateTime) Millisecond() int
- func (fdt *FullDateTime) Parse(fmt string, s string) error
- func (fdt FullDateTime) PureDate() PureDate
- func (fdt FullDateTime) PureTime() PureTime
- func (fdt *FullDateTime) Set(t time.Time)
- func (fdt FullDateTime) String() string
- func (fdt FullDateTime) Time() time.Time
- func (fdt *FullDateTime) UnmarshalJSON(bs []byte) error
- type PureDate
- func (pd *PureDate) Assign(s string) error
- func (pd PureDate) Format(fmt string) string
- func (pd PureDate) MarshalJSON() ([]byte, error)
- func (pd *PureDate) Parse(fmt string, s string) error
- func (pd *PureDate) Set(t time.Time)
- func (pd PureDate) String() string
- func (pd PureDate) Time() time.Time
- func (pd *PureDate) UnmarshalJSON(bs []byte) error
- type PureTime
- func (pt *PureTime) Assign(s string) error
- func (pt PureTime) Format(fmt string) string
- func (pt PureTime) MarshalJSON() ([]byte, error)
- func (pt *PureTime) Parse(fmt string, s string) error
- func (pt *PureTime) Set(t time.Time)
- func (pt PureTime) String() string
- func (pt PureTime) Time() time.Time
- func (pt *PureTime) UnmarshalJSON(bs []byte) error
Constants ¶
View Source
const DATETIME_FORMAT string = "2006-01-02 15:04:05"
View Source
const FULL_DATETIME_FORMAT string = "2006-01-02 15:04:05.999999999"
View Source
const PURE_DATE_FORMAT string = "2006-01-02"
View Source
const PURE_TIME_FORMAT string = "15:04:05"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullDateTime ¶ added in v0.0.7
func (*FullDateTime) AddMicrosecond ¶ added in v0.0.9
func (fdt *FullDateTime) AddMicrosecond(microsecond int)
func (*FullDateTime) AddMillisecond ¶ added in v0.0.9
func (fdt *FullDateTime) AddMillisecond(millisecond int)
func (*FullDateTime) Assign ¶ added in v0.0.7
func (fdt *FullDateTime) Assign(s string) error
func (FullDateTime) Format ¶ added in v0.0.7
func (fdt FullDateTime) Format(fmt string) string
func (FullDateTime) MarshalJSON ¶ added in v0.0.7
func (fdt FullDateTime) MarshalJSON() ([]byte, error)
func (FullDateTime) Microsecond ¶ added in v0.0.8
func (fdt FullDateTime) Microsecond() int
func (FullDateTime) Millisecond ¶ added in v0.0.8
func (fdt FullDateTime) Millisecond() int
func (*FullDateTime) Parse ¶ added in v0.0.7
func (fdt *FullDateTime) Parse(fmt string, s string) error
func (FullDateTime) PureDate ¶ added in v0.0.10
func (fdt FullDateTime) PureDate() PureDate
func (FullDateTime) PureTime ¶ added in v0.0.10
func (fdt FullDateTime) PureTime() PureTime
func (*FullDateTime) Set ¶ added in v0.0.7
func (fdt *FullDateTime) Set(t time.Time)
func (FullDateTime) String ¶ added in v0.0.7
func (fdt FullDateTime) String() string
func (FullDateTime) Time ¶ added in v0.0.7
func (fdt FullDateTime) Time() time.Time
func (*FullDateTime) UnmarshalJSON ¶ added in v0.0.7
func (fdt *FullDateTime) UnmarshalJSON(bs []byte) error
type PureDate ¶ added in v0.0.3
func (PureDate) MarshalJSON ¶ added in v0.0.3
func (*PureDate) UnmarshalJSON ¶ added in v0.0.3
type PureTime ¶ added in v0.0.3
func (PureTime) MarshalJSON ¶ added in v0.0.3
func (*PureTime) UnmarshalJSON ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.