Zoned Date Time Interval
class ZonedDateTimeInterval(start: ZonedDateTime, endExclusive: ZonedDateTime) : TimePointInterval<ZonedDateTime>
Content copied to clipboard
A half-open interval of zoned date-times based on timeline order.
DateTime.MIN and DateTime.MAX are used as sentinels to indicate an unbounded (ie. infinite) start or end. A ZonedDateTime with either as the date-time component will be treated accordingly, regardless of the offset or time zone.
Constructors
ZonedDateTimeInterval
Link copied to clipboard
fun ZonedDateTimeInterval(start: ZonedDateTime = UNBOUNDED.start, endExclusive: ZonedDateTime = UNBOUNDED.endExclusive)
Content copied to clipboard
Types
Functions
asDuration
Link copied to clipboard
contains
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
lengthInMonths
Link copied to clipboard
lengthInNanoseconds
Link copied to clipboard
lengthInSeconds
Link copied to clipboard
lengthInWeeks
Link copied to clipboard
lengthInYears
Link copied to clipboard
start
Link copied to clipboard
Extensions
random
Link copied to clipboard
randomOrNull
Link copied to clipboard
toDateRange
Link copied to clipboard
toDateTimeInterval
Link copied to clipboard
toInstantInterval
Link copied to clipboard
toOffsetDateTimeInterval
Link copied to clipboard
fun ZonedDateTimeInterval.toOffsetDateTimeInterval(): OffsetDateTimeInterval
Content copied to clipboard
Converts this interval to an OffsetDateTimeInterval.