Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Daterange ¶
Daterange holds the end and start dates.
func FromString ¶
`FromString` returns a pointer to a `Daterange` from string. The parameter `s`s' format is "<full-date>,<tzdata-id>,<interval>".
- <full-date> "yyyy-mm-dd"
- <tzdata-id> see https://www.iana.org/time-zones.
- <interval> "<number><dayormonth><direction>"
- <number> Natural number that starts from 1.
- <dayormonth> "d" or "m"
- <direction> "-" or "+"
See daterange_test.go for how to use this function.
func (*Daterange) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.