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

Case saturday or sunday as working day #28

Open
aidar87 opened this issue Sep 16, 2018 · 0 comments
Open

Case saturday or sunday as working day #28

aidar87 opened this issue Sep 16, 2018 · 0 comments

Comments

@aidar87
Copy link

aidar87 commented Sep 16, 2018

Hi guys, could you advise how can I set Saturday or Sunday as working day only in some cases( not always)?
The special day evaluator requires return an array of opening intervals.

This doesn't work:
new SpecialDay(Days::SATURDAY, function (\DateTime $date) {
if ('2015-05-29' === $date->format('Y-m-d')) {
return [['00:00', '23:59:59']];
}
return ;
});

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

1 participant