Documentation
¶
Index ¶
- Constants
- type DateTime
- func (ins DateTime) MarshalJSON() ([]byte, error)
- func (ins DateTime) MarshalText() ([]byte, error)
- func (ins *DateTime) Scan(value interface{}) error
- func (ins *DateTime) SetDisplay(option display) *DateTime
- func (ins *DateTime) SetFormat(format string) *DateTime
- func (ins *DateTime) SetTimezone(name string) *DateTime
- func (ins *DateTime) UnmarshalJSON(input []byte) error
- func (ins *DateTime) UnmarshalText(input []byte) error
- func (ins DateTime) Value() (driver.Value, error)
Constants ¶
View Source
const ( SecondsISO8601 display = iota MillisecondsISO8601 ISO8601 UnixTimestamp MillisecondsTimestamp Custom )
默认支持的显示类型
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DateTime ¶
DateTime 时间类型
func ParseInTimezone ¶
Parse 解析时间字符串
func (DateTime) MarshalText ¶ added in v1.0.2
func (*DateTime) SetDisplay ¶
SetDisplay 设置输出类型
func (*DateTime) SetTimezone ¶
SetTimezone 设置时区
func (*DateTime) UnmarshalJSON ¶
UnmarshalJSON 转换 JSON
func (*DateTime) UnmarshalText ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.