Documentation
¶
Index ¶
Constants ¶
View Source
const ISO8601Date = "2006-01-02"
ISO8601Date is a format string for ISO8601 yyyy-MM-dd date format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
type Date struct {
// contains filtered or unexported fields
}
Date represents a moment in time specified by year, month and day.
func Parse ¶
Parse constructs a new date from the input string accepting format similar to time.Parse, but limited to: 2006 for year, 01 for month, and 02 for day.
func (*Date) MarshalText ¶
MarshalText allows Date to marshal itself into a textual form, for example to JSON or XML.
func (*Date) UnmarshalText ¶
UnmarshalText allows Date to unmarshal a textual representation of itself, for example from JSON or XML.
Click to show internal directories.
Click to hide internal directories.