Versions in this module Expand all Collapse all v1 v1.0.2 Apr 23, 2021 v1.0.1 Apr 23, 2021 Changes in this version + var ErrBadFormat = errors.New("bad format string") + type Duration struct + Days int + Hours int + Minutes int + Months int + Seconds int + Weeks int + Years int + func FromString(dur string) (*Duration, error) + func (d *Duration) Add(t time.Time) time.Time + func (d *Duration) HasTimePart() bool + func (d *Duration) IsZero() bool + func (d *Duration) RelativeTo(t time.Time) time.Duration + func (d *Duration) String() string