moneybird / active-date-range

Powerful DateRanges for Ruby and ActiveSupport
MIT License
51 stars 0 forks source link

Add intersection support #6

Closed edwinv closed 3 years ago

edwinv commented 3 years ago

Add support for finding the intersection of two DateRanges:

date_range.intersection(DateRange.parse('202101..202102')) # => DateRange.parse('202101..202102')