Versions in this module Expand all Collapse all v0 v0.2.1 Apr 4, 2022 v0.2.0 Apr 4, 2022 Changes in this version type Diff + func NewDiffWithMode(start, end time.Time, mode DiffMode) (Diff, error) + type DiffMode uint8 + const ModeDays + const ModeMonths + const ModeWeeks + const ModeYears v0.1.0 Mar 24, 2022 Changes in this version + type Diff struct + Days int + Months int + Weeks int + Years int + func NewDiff(start, end time.Time, rawFormat string) (Diff, error) + func (d Diff) Equal(other Diff) bool + func (d Diff) Format(rawFormat string) (string, error) + func (d Diff) FormatWithZeros(rawFormat string) (string, error) + func (d Diff) String() string + func (d Diff) StringWithZeros() string