DurationExtension extension

Extension methods for Duration.

on

Methods

clamp(Duration min, Duration max) Duration

Available on Duration, provided by the DurationExtension extension

Returns clamp of Duration between min and max.
label({Duration? reference}) String

Available on Duration, provided by the DurationExtension extension

Returns a String representation of Duration.