DateTimeInterval
An interval between two date-times, assumed to be at the same offset from UTC.
DateTime.MIN and DateTime.MAX are used as sentinels to indicate an unbounded (ie. infinite) start or end.
class DateTimeInterval(start: DateTime,endExclusive: DateTime) : Interval<DateTime>
Content copied to clipboard
Constructors
DateTimeInterval
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 whole 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.
lengthInMonths
Link copied to clipboard
The number of whole months in this interval.
lengthInNanoseconds
Link copied to clipboard
The number of nanoseconds in this interval.
lengthInSeconds
Link copied to clipboard
The number of whole seconds in this interval.
lengthInWeeks
Link copied to clipboard
The number of whole weeks in this interval.
lengthInYears
Link copied to clipboard
The number of whole years in this interval.
Extensions
at
Link copied to clipboard
random
Link copied to clipboard
randomOrNull
Link copied to clipboard
toDateRange
Link copied to clipboard
toInstantIntervalAt
Link copied to clipboard
fun DateTimeInterval.toInstantIntervalAt(zone: TimeZone): InstantInterval
Content copied to clipboard