between

fun between(start: Duration, end: Duration, startInclusivity: Interval.Inclusivity = Inclusivity.Inclusive, endInclusivity: Interval.Inclusivity = startInclusivity): Interval

Constructs an interval between two durations.

Return

A non-empty interval if start < end, or an empty interval otherwise.

Parameters

start

The starting time of the interval.

end

The ending time of the interval.