Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RFC3339Parse ¶
Parse a string to an RFC3339 timestamp.
Types ¶
type JsonRFC3339 ¶
An RFC3339 object.
func (JsonRFC3339) Format ¶
func (j JsonRFC3339) Format(s string) string
Format an RFC3339 object as a string.
func (JsonRFC3339) MarshalJSON ¶
func (j JsonRFC3339) MarshalJSON() ([]byte, error)
Marshal an RFC3339 object to JSON.
func (JsonRFC3339) MySQL ¶
func (j JsonRFC3339) MySQL() string
Convert an RFC3339 time to a MySQL timestamp.
func (JsonRFC3339) Time ¶
func (j JsonRFC3339) Time() time.Time
convert an RFC3339 time to time.Time.
func (*JsonRFC3339) UnmarshalJSON ¶
func (j *JsonRFC3339) UnmarshalJSON(b []byte) error
Unmarshal an RFC3339 timestamp from JSON.
Click to show internal directories.
Click to hide internal directories.