Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(timespan): improve check for a time contained in a timespan #787

Merged
merged 2 commits into from Jan 4, 2021

Conversation

johnnylam88
Copy link
Contributor

This pullup fixes issue #772.

In checking whether a time t is contained in an interval (a, b),
consider it true only if a <= t < b. Previously this allowed for
a <= t <= b, but that is not accurate since timespans are composed
of half-open intervals (closed on the left) with a universe of
[0, infinity).
@Sidoine Sidoine merged commit f5b7783 into Sidoine:master Jan 4, 2021
@johnnylam88 johnnylam88 deleted the fix/timespan-has-time branch January 4, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants