Versions in this module Expand all Collapse all v0 v0.0.1 Dec 18, 2019 Changes in this version + const Day + const Month + const Week + const Year + const Zero + var ErrBadFormat = errors.New("invalid ISO8601 string") + type Duration struct + func ParseString(dur string) (*Duration, error) + func (d *Duration) Days() float64 + func (d *Duration) HasTimePart() bool + func (d *Duration) Hours() float64 + func (d *Duration) IsWeeksOnly() bool + func (d *Duration) IsZero() bool + func (d *Duration) Minutes() float64 + func (d *Duration) Seconds() float64 + func (d *Duration) String() string + func (d *Duration) ToDuration() time.Duration + func (d *Duration) UnmarshalJSON(data []byte) error + func (d *Duration) Weeks() float64 + func (d *Duration) Years() float64 + func (d Duration) MarshalJSON() ([]byte, error)