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

Provide an example (or implementation) of 24/7 working time. #22

Open
ddinchev opened this issue Apr 30, 2017 · 1 comment
Open

Provide an example (or implementation) of 24/7 working time. #22

ddinchev opened this issue Apr 30, 2017 · 1 comment

Comments

@ddinchev
Copy link

I wasn't able to figure out from examples how to nicely model 24/7 working time. It seems to be a common general case so if it's already implemented elegantly, it would be nice to have an example in the docs. Otherwise, this issue could be a starting point for discussion for potential implementation.

@florianv
Copy link
Owner

florianv commented Jun 2, 2017

Hey @ddinchev,

I didn't test it but would something like this work ?

$days = [
    new Day(Days::MONDAY, [['00:00', '23:59']]),
    new Day(Days::TUESDAY, [['00:00', '23:59']]),
    // etc
];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants