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

occurs_between? misses start time when duration is zero #147

Closed
avit opened this issue Feb 10, 2013 · 0 comments
Closed

occurs_between? misses start time when duration is zero #147

avit opened this issue Feb 10, 2013 · 0 comments
Assignees

Comments

@avit
Copy link
Collaborator

avit commented Feb 10, 2013

The comment says "inclusive" but it actually excludes the start time when duration is zero:

schedule = IceCube::Schedule.new(Time.utc(2013, 1, 1))
t1, t2 = Time.utc(2013, 2, 10), Time.utc(2013, 2, 11)
schedule.add_recurrence_time t1

schedule.occurring_between?(t1, t2) # => false
schedule.duration = 1
schedule.occurring_between?(t1, t2) # => true
@ghost ghost assigned avit Feb 12, 2013
@avit avit closed this as completed in 9b7977d Feb 12, 2013
rlivsey pushed a commit to rlivsey/ice_cube that referenced this issue Jun 18, 2013
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

No branches or pull requests

1 participant