Instant Interval
class InstantInterval(start: Instant, endExclusive: Instant) : TimePointInterval<Instant> , TimePointProgressionBuilder<Instant>
Content copied to clipboard
A half-open interval between two instants.
Instant.MIN and Instant.MAX are used as sentinels to indicate an unbounded (ie. infinite) start or end.
Constructors
InstantInterval
Link copied to clipboard
fun InstantInterval(start: Instant = Instant.MIN, endExclusive: Instant = Instant.MAX)
Content copied to clipboard
Types
Functions
asDuration
Link copied to clipboard
hasBoundedEnd
Link copied to clipboard
hasBoundedStart
Link copied to clipboard
hasUnboundedEnd
Link copied to clipboard
hasUnboundedStart
Link copied to clipboard
isUnbounded
Link copied to clipboard
Properties
endExclusive
Link copied to clipboard
endInclusive
Link copied to clipboard
lengthInDays
Link copied to clipboard
lengthInHours
Link copied to clipboard
lengthInMicroseconds
Link copied to clipboard
lengthInMilliseconds
Link copied to clipboard
lengthInMinutes
Link copied to clipboard
lengthInNanoseconds
Link copied to clipboard
lengthInSeconds
Link copied to clipboard
Extensions
at
Link copied to clipboard
Combines this InstantInterval with a TimeZone to create an equivalent ZonedDateTimeInterval where both endpoints are in zone.
random
Link copied to clipboard
randomOrNull
Link copied to clipboard
toDateRangeAt
Link copied to clipboard
toDateTimeIntervalAt
Link copied to clipboard
fun InstantInterval.toDateTimeIntervalAt(zone: TimeZone): DateTimeInterval
Content copied to clipboard