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
If you attempt to use an == check with lubridate intervals, it uses the interval duration, rather than the interval object itself.
Reading the docs for lubridate::interval, this doesn't seem like this should be the default behaviour. Shouldn't this act like comparing two time ranges?
The text was updated successfully, but these errors were encountered:
jakemanger
changed the title
Equal to == operator doesn't work with lubridate intervals
Equal to == operator doesn't work with lubridate intervals when created with a date string
Sep 26, 2023
jakemanger
changed the title
Equal to == operator doesn't work with lubridate intervals when created with a date string
Equal to == operator doesn't work as expected with lubridate intervals
Sep 26, 2023
@vspinu I believe the comparison as a partial order approach would be much more useful (at least for me). I've implemented a proposed solution here #1136
If you attempt to use an
==
check with lubridate intervals, it uses the interval duration, rather than the interval object itself.Reading the docs for lubridate::interval, this doesn't seem like this should be the default behaviour. Shouldn't this act like comparing two time ranges?
Note, I am using lubridate 1.9.2
The text was updated successfully, but these errors were encountered: