Date Range
class DateRange(start: Date, endInclusive: Date) : DateDayProgression, Interval<Date> , ClosedRange<Date>
Content copied to clipboard
An inclusive range of dates.
Date.MIN and Date.MAX are used as sentinels to indicate an unbounded (ie. infinite) start or end.
Constructors
Types
Functions
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
lengthInMonths
Link copied to clipboard
lengthInWeeks
Link copied to clipboard
lengthInYears
Link copied to clipboard
Extensions
at
Link copied to clipboard
Combines this DateRange with a TimeZone to create a ZonedDateTimeInterval between the start of the first day and the end of the last day in zone.
random
Link copied to clipboard
randomOrNull
Link copied to clipboard
toInstantIntervalAt
Link copied to clipboard
Converts this range to an InstantInterval between the start of the first day and the end of the last day in zone.