corda / net.corda.core.contracts / TimeWindow / fromStartAndDuration

fromStartAndDuration

@JvmStatic fun fromStartAndDuration(fromTime: Instant, duration: Duration): TimeWindow

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