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

Support zero scalar for-duration calculations #61

Merged
merged 1 commit into from
Apr 12, 2016

Conversation

craiglittle
Copy link
Collaborator

The first active period in the chosen direction is found and the time at the beginning of that period returned. If the specified origin is in the middle of an active period, that time is returned.

The same logic is applied looking forward or backward with the only difference being the direction.

Fixes #59.

@alex-stone @joshlam @kpandya91 @kbrainwave

/cc @mwean

@craiglittle craiglittle force-pushed the craig/zero-calculation branch 3 times, most recently from 5a1f946 to 5cd0554 Compare April 12, 2016 05:50
@mwean
Copy link

mwean commented Apr 12, 2016

Amazing, thanks!

The first active period in the chosen direction is found and the time at
the beginning of that period returned.

If the specified origin is in the middle of an active period, that time
is returned.

The same logic is applied looking forward or backward with the only
difference being the direction.

Fixes #59.
@craiglittle craiglittle force-pushed the craig/zero-calculation branch from 5cd0554 to 324fe55 Compare April 12, 2016 17:10
@alex-stone
Copy link

👍

@craiglittle craiglittle merged commit 9775661 into master Apr 12, 2016
@craiglittle craiglittle deleted the craig/zero-calculation branch April 12, 2016 17:41
@craiglittle
Copy link
Collaborator Author

@mwean Released in v1.5.2!

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.

3 participants