Closed coffeduong closed 7 years ago
I think it doesn't make sense :)
Well, I understand your point, but this is how the RFC has been specified, and how a recurrence set works. The COUNT applies to the RRULE only, not the entire set.
To make things clearer, here are some examples:
If you want the behavior you are describing, I suggest you remove the COUNT altogether and instead select only the first 5 occurrences (use getOccurrences(5)
for example).
I hope this makes sense to you now.
This make sense now :) Thank you very much!
I follow the example here https://github.com/rlanvin/php-rrule/wiki/RSet#iteration But I think it should be like this
Because we have count = 5, if 06 Sep 1997 is remove, 12 Sep 1997 should add in the end. In your example you only show 4 occurrences. I think it doesn't make sense :)