contains

operator fun contains(date: LocalDate): Boolean

Returns whether date is inside this inclusive range.


operator fun contains(range: DateRange): Boolean

Returns whether range is fully inside this inclusive range.


fun contains(year: Int, month: Int, day: Int): Boolean

Returns whether year, month, and day are inside this inclusive range.

Values outside the supported year, month, or day ranges return false. A day greater than the maximum valid day for year and month also returns false.