corda / net.corda.core.contracts / TimeWindow / between

between

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

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

Exceptions

IllegalArgumentException - If fromTimeuntilTime