You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
range.mapEndpoints { it.startOfWeek } - apply a function to both endpoints
range.shiftedBy((-1).days) - specialization of mapEndpoints that maps the start/end by a period or duration
range.copy(start = anotherDate)
ZonedDateTimeInterval and OffsetDateTimeInterval pose some challenges since the endpoints may have different zones or offsets. It might make sense to have them return InstantInterval if you try to perform a union or intersection on them, for example.
The text was updated successfully, but these errors were encountered:
Some of the following operators could be quite useful additions:
range1 union range2
range1 intersect range2
range1 span range2
range1.abuts(range2)
range1.encloses(range2)
range1.overlaps(range2)
range.mapEndpoints(start = { it.startOfWeek }, endInclusive = { it.endOfWeek })
range.mapEndpoints { it.startOfWeek }
- apply a function to both endpointsrange.shiftedBy((-1).days)
- specialization ofmapEndpoints
that maps the start/end by a period or durationrange.copy(start = anotherDate)
ZonedDateTimeInterval
andOffsetDateTimeInterval
pose some challenges since the endpoints may have different zones or offsets. It might make sense to have them returnInstantInterval
if you try to perform a union or intersection on them, for example.The text was updated successfully, but these errors were encountered: