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

Add union and intersect methods to Tod::Shift #26

Open
gregbeech opened this issue Jun 23, 2015 · 1 comment
Open

Add union and intersect methods to Tod::Shift #26

gregbeech opened this issue Jun 23, 2015 · 1 comment

Comments

@gregbeech
Copy link
Contributor

Use cases:

  • union for when you have multiple shifts within the same time period (e.g. different people on a team) and want to find the effective shift when somebody is working.
  • intersect for a similar scenario, but you want to find when somebody is not working.

It's possible that this might be problematic to implement in a general sense because it could be nondeterministic with shifts that go into the next day. I'm going to be writing this anyway as we have the requirement to do this within a day, but would be happy to have a go at writing a more general approach if you're interested in having it in the library?

@jackc
Copy link
Owner

jackc commented Jun 30, 2015

Could be useful if it can be done in a general sense -- though I share your concerns that it may be problematic.

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