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

Some precisions : hours/minutes and merge collections #154

Open
clem983 opened this issue Nov 23, 2018 · 0 comments
Open

Some precisions : hours/minutes and merge collections #154

clem983 opened this issue Nov 23, 2018 · 0 comments

Comments

@clem983
Copy link

clem983 commented Nov 23, 2018

Hi,

Thank you for this great lib :)

I'm trying to use it, but I have some questions ...

• I don't understand how to set multiple hours and minutes in a day. If I want 2 time slots of 1 hour, at 10:00 and 15:00, I'm going to do :

$rule = (new Rule) ->setStartDate("2018-11-01 10:00:00") ->setEndDate("2018-11-01 11:00:00") ->setFreq('DAILY') ->setByHour(array(10, 15)) ;

But if I want 2 time slots of 1 hour, at 10:15 and 15:45, how to do it ? If I add setByMinute(array(15, 45)), it's going to generate 10:15, 10:45, 15:15 and 15:45

• If I have multiple recurrence collections, is it possible to "merge" them ? For example, if I have a day disponibilities in a collection, and user absences in an other collection, can I remove the absence periods in the day disponibilities ?

• And, finally, how to include 'startDate' and 'endDate' in the collection ?

Thanks a lot :)

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