-
Notifications
You must be signed in to change notification settings - Fork 215
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
Consecutive work- and non-working days #139
Comments
@craiglittle thanks for your suggestion, however this would work if I knew the exact range of dates in which I could look for work/non-working days in the first place. In this case I'm not able to make such assumptions and I'm looking for a more general solution, hence this issue. |
I'm interested in the problem you're trying to solve, but I'm not quite sure I follow what you're looking for. Could you provide a rough sketch of the API and expected response(s)? There's a possibility of adding the feature to |
@craiglittle I already forked |
If you have this working in a fork, I'd love to see a pull request. |
The project I'm working on requires us to calculate consecutive working or non-working days around a given date, e.g. called for non-working days on a Sunday (say Sept. 25, 2016) we would expect to get a period of work-free days around this date (in this case Sept. 24 and Sept. 25 - a Saturday and a Sunday). In our case, this feature is vital as it often happens that there is a public holiday right after weekend (or a week is scattered with occasional public holidays) and we needed a simple interface that would return such an array of dates. Naturally, the implementation is straightforward but still it feels that it should be part of this gem. Wondering if such a feature would be fit for this library.
The text was updated successfully, but these errors were encountered: