DurationExtensions extension

Extensions for Duration operations and utilities.

on

Properties

formatted String

Available on Duration, provided by the DurationExtensions extension

Returns a formatted string (HH:mm:ss).
no setter
formattedShort String

Available on Duration, provided by the DurationExtensions extension

Returns a formatted string (mm:ss).
no setter
humanReadable String

Available on Duration, provided by the DurationExtensions extension

Returns a human-readable string representation.
no setter
isNegative bool

Available on Duration, provided by the DurationExtensions extension

Returns true if the duration is negative.
no setter
isPositive bool

Available on Duration, provided by the DurationExtensions extension

Returns true if the duration is positive.
no setter
isZero bool

Available on Duration, provided by the DurationExtensions extension

Returns true if the duration is zero.
no setter