rangeTo

operator fun Duration.rangeTo(other: Duration): Interval

Create an interval between two durations, including both endpoints, using the .. operator.