Companion

object Companion

Functions

Link copied to clipboard
fun ordered(startDate: LocalDate, endDate: LocalDate): DateRange

Creates a DateRange from two dates, ordering them if startDate is after endDate.

fun ordered(startYear: Int, startMonth: Int, startDay: Int, endYear: Int = startYear, endMonth: Int = startMonth, endDay: Int = startDay): DateRange

Creates a DateRange from explicit date parts, ordering the resulting dates if needed.