jackc / tod

Time of day and shift types for Ruby
MIT License
435 stars 56 forks source link

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

Open gregbeech opened 9 years ago

gregbeech commented 9 years ago

Use cases:

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 commented 9 years ago

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