between

fun between(fromTime: Instant, untilTime: Instant): TimeWindow

Creates a TimeWindow with the time interval [fromTime, untilTime). midpoint will return fromTime + (untilTime - fromTime) / 2.

Throws