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

Intersecting two Biz::Schedule #50

Closed
pocman opened this issue Mar 29, 2016 · 4 comments
Closed

Intersecting two Biz::Schedule #50

pocman opened this issue Mar 29, 2016 · 4 comments

Comments

@pocman
Copy link

pocman commented Mar 29, 2016

Hi,

I would like to create Biz::Schedule as an intersection of two other Biz::Schedule.
They should have the same time_zone, the union of holidays and the intersection of hours.

Is that already implemented or should I do it ?
Thanks.

@craiglittle
Copy link
Collaborator

Hey there, @pocman!

This isn't something that's currently supported out of the box, but I think it's an interesting feature.

Let me see what I can do.

craiglittle added a commit that referenced this issue Mar 30, 2016
An intersection of two schedules consists of:
  * an intersection of intervals
  *   * a union of holidays
  *     * the time zone of the first schedule

See the `README` for an example.

Closes #50.
craiglittle added a commit that referenced this issue Mar 30, 2016
An intersection of two schedules consists of:
  * an intersection of intervals
  *   * a union of holidays
  *     * the time zone of the first schedule

See the `README` for an example.

Closes #50.
craiglittle added a commit that referenced this issue Mar 30, 2016
An intersection of two schedules consists of:
  * an intersection of intervals
  * a union of holidays
  * the time zone of the first schedule

See the `README` for an example.

Closes #50.
craiglittle added a commit that referenced this issue Mar 30, 2016
An intersection of two schedules consists of:
  * an intersection of intervals
  * a union of holidays
  * the time zone of the first schedule

See the `README` for an example.

Closes #50.
craiglittle added a commit that referenced this issue Mar 30, 2016
An intersection of two schedules consists of:
  * an intersection of intervals
  * a union of holidays
  * the time zone of the first schedule

See the `README` for an example.

Closes #50.
craiglittle added a commit that referenced this issue Mar 30, 2016
An intersection of two schedules consists of:
  * an intersection of intervals
  * a union of holidays
  * the time zone of the first schedule

See the `README` for an example.

Closes #50.
craiglittle added a commit that referenced this issue Mar 30, 2016
An intersection of two schedules consists of:
  * an intersection of intervals
  * a union of holidays
  * the time zone of the first schedule

See the `README` for an example.

Closes #50.
craiglittle added a commit that referenced this issue Mar 30, 2016
An intersection of two schedules consists of:
  * an intersection of intervals
  * a union of holidays
  * the time zone of the first schedule

See the `README` for an example.

Closes #50.
craiglittle added a commit that referenced this issue Mar 30, 2016
An intersection of two schedules consists of:
  * an intersection of intervals
  * a union of holidays
  * the time zone of the first schedule

See the `README` for an example.

Closes #50.
@craiglittle
Copy link
Collaborator

This feature has been released in v1.5.0! Let me know if you run into any issues.

@pocman
Copy link
Author

pocman commented Mar 30, 2016

Thanks a lot, 20 hours for a feature...
It's going to save me a lot of pain :D

@craiglittle
Copy link
Collaborator

Haha, you happened to catch me at a team offsite with some free time. Glad to help! Thanks for the suggestion.

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

2 participants