DateTimeRange
data class DateTimeRange(val from: DateTime, val to: DateTime) : Comparable<DateTime> , Serializable
Represents a right-opened range between two dates.
Properties
Functions
Link copied to clipboard
Returns new DateTimeRange or null - the result of intersection of this and that DateTimeRanges.
Link copied to clipboard
Returns true if this and that DateTimeRanges have intersection or at least a common end otherwise false.
Link copied to clipboard
Returns true if this and that DateTimeRanges have intersection otherwise false.
Link copied to clipboard
Returns new DateTimeRange or null - the result of merging this and that DateTimeRanges if they have intersection.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns a List of 0, 1 or 2 DateTimeRanges - the result of removing that DateTimeRange from this one