Documentation ¶
Overview ¶
The iso8601 package encodes and decodes time.Time in JSON in ISO 8601 format, without subsecond resolution or time zone info.
Index ¶
Constants ¶
View Source
const Format = "2006-01-02T15:04:05"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Time ¶
func New ¶
New constructs a new iso8601.Time instance from an existing time.Time instance. This causes the nanosecond field to be set to 0, and its time zone set to a fixed zone with no offset from UTC (but it is *not* UTC itself).
func (Time) MarshalJSON ¶
func (*Time) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.