DurationX extension

on

Properties

hourPart int

Available on Duration, provided by the DurationX extension

no setter
millisecondPart int

Available on Duration, provided by the DurationX extension

no setter
minutePart int

Available on Duration, provided by the DurationX extension

no setter
secondPart int

Available on Duration, provided by the DurationX extension

no setter

Methods

clamp(Duration lower, Duration upper) Duration

Available on Duration, provided by the DurationX extension

format([String format = 'HH:mm']) String

Available on Duration, provided by the DurationX extension

percentOf(Duration other) double

Available on Duration, provided by the DurationX extension

Operators

operator /(int divider) Duration

Available on Duration, provided by the DurationX extension

operator ~/(int divider) Duration

Available on Duration, provided by the DurationX extension

Static Methods

parse(String raw) Duration

Available on Duration, provided by the DurationX extension