-
Notifications
You must be signed in to change notification settings - Fork 2
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
Seasonal business days #21
Comments
This is exactly one of the scenarios I had in mind when working on this library and I believe it should be possible to achieve this already out of the box. Non Working Period receive TimePeriod which can be created for the current year that can be taken from Calendar. In case that won't work, please share some more details and I can try to prepare some pseudo-code maybe |
Making calculation for the given year are possible. I was thinking about the object which could represent a period without a year, eg:
In my application I need to store period without the year because year will change. I'm not sure if such an object |
Right, if closed season is repeatable and linear to avoid boilerplate code it might make sense to add something like ClosedSeason implementation of NonBusinessDay. |
Yeah, sure. Thanks. |
I didn't find a way to create business hours for seasonal businesses. For example summer pub is opened every year from 1st of April to last of September. Maybe, I missed something and it's already possible. Anyway, @norberttech do you think it should be a part of
aeon-php/business-hours
or not?The text was updated successfully, but these errors were encountered: