DurationExtra extension

on

Properties

inMonths int
Only returns whole months. Here, a month equals daysPerMonth days
no setter
inWeeks int
Only returns whole weeks. Here, a week equals daysPerWeek days
no setter
inYears int
Only returns whole years
no setter

Methods

toDurationString({MomentLocalization? localization, bool round = true, bool omitZeros = true, bool includeWeeks = false, Abbreviation form = Abbreviation.none, String? delimiter, DurationFormat format = DurationFormat.auto, bool dropPrefixOrSuffix = false}) String

Constants

daysPerMonth → const int
daysPerMonthPrecise → const double
Precise number for nerds
daysPerWeek → const int
daysPerYear → const int
daysPerYearPrecise → const double
Precise number for nerds
monthsPerYear → const int
weeksPerYear → const int
weeksPerYearPrecise → const double
Precise number for nerds