date-time
date-time copied to clipboard
Implement contains, intersection and `of` methods for Interval
closes #63
Do you think it makes sense to also implement isEqualTo() and toNativeDatePeriod()?
@BenMorel ping 🤸
Do you think it makes sense to also implement isEqualTo() and toNativeDatePeriod()?
-
isEqualTo(): yes, and you may use it in your tests as per my comment -
toNativeDatePeriod(): it looks likeDatePeriodis about recurring periods, so I don't think they represent the same concept. I'd pass on this one.
Okay, I will implement isEqualTo() as well.
Done! Code coverage has been decreased for the classes this PR is not responsible for, maybe something has changed in the method of the coverage calculation.
Thank you! Released as 0.4.2 :tada: