InstantInterval
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.
class InstantInterval(start: Instant,endExclusive: Instant) : TimePointInterval<Instant> , TimePointProgressionBuilder<Instant>
Content copied to clipboard
Constructors
InstantInterval
Link copied to clipboard
Types
Functions
asDuration
Link copied to clipboard
contains
Link copied to clipboard
equals
Link copied to clipboard
hasBoundedEnd
Link copied to clipboard
hasBoundedStart
Link copied to clipboard
hasUnboundedEnd
Link copied to clipboard
hasUnboundedStart
Link copied to clipboard
isBounded
Link copied to clipboard
isUnbounded
Link copied to clipboard
Properties
endExclusive
Link copied to clipboard
The end of this interval, exclusive.
endInclusive
Link copied to clipboard
The end of this interval, inclusive.
lengthInDays
Link copied to clipboard
The number of 24-hour days in this interval.
lengthInHours
Link copied to clipboard
The number of whole hours in this interval.
lengthInMicroseconds
Link copied to clipboard
The number of whole microseconds in this interval.
lengthInMilliseconds
Link copied to clipboard
The number of whole milliseconds in this interval.
lengthInMinutes
Link copied to clipboard
The number of whole minutes in this interval.
lengthInNanoseconds
Link copied to clipboard
The number of whole nanoseconds in this interval.
lengthInSeconds
Link copied to clipboard
The number of whole seconds in this interval.
Extensions
at
Link copied to clipboard
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