Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Granularity ¶
type Granularity int
const ( Year Granularity = iota Month Week Day Hour )
func ParseISO8601 ¶
func ParseISO8601(s string) (*time.Time, Granularity, error)
ParseISO8601 is **not** a function to parse all and every kind of valid ISO 8601 date, nor it's intended to be, since we don't need that.
Click to show internal directories.
Click to hide internal directories.