Documentation
¶
Index ¶
Constants ¶
View Source
const TimestampFormatLayout = "2006-01-02 15:04:05"
TimestampFormatLayout formatlayout, save in mysql
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Timestamp ¶
Timestamp unix timestamp
func NewWithTime ¶
NewWithTime return a specified time's Timestamp
func (Timestamp) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.