DurationExtensions extension
- on
Methods
-
format(
{int maxParts = 2, int secondsToShowNow = 0, DurationFormatter formatter = const DefaultDurationFormatter()}) → String -
Available on Duration, provided by the DurationExtensions extension
Format duration to readable string -
minusDays(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count down this duration with n days -
minusHours(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count down this duration with n hours -
minusMicroSeconds(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count down this duration with n microseconds -
minusMilliSeconds(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count down this duration with n milliseconds -
minusMinutes(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count down this duration with n minutes -
minusSeconds(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count down this duration with n seconds -
plusDays(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count up this duration with n days -
plusHours(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count up this duration with n hours -
plusMicroSeconds(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count up this duration with n microseconds -
plusMilliSeconds(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count up this duration with n milliseconds -
plusMinutes(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count up this duration with n minutes -
plusSeconds(
[int v = 1]) → Duration -
Available on Duration, provided by the DurationExtensions extension
count up this duration with n seconds -
toIso(
) → String -
Available on Duration, provided by the DurationExtensions extension
convert duration to ISO_8601 format