I'm trying to define a RRULE for an event which occurs on the first and second Monday and Tuesday of each month. This would equal four event occurrences per month. I thought this was correct:
FREQ=MONTHLY;INTERVAL=1;BYSETPOS=1,2;BYDAY=MO,TU
But it only generates occurrences for the first Monday/Tuesday of each month. If I remove Tuesday, it will generate occurrences for both the first and second Mondays in the month. Why can't I specify multiple BYSETPOS values (as the RRULE spec seems to allow) along with multiple BYDAY values?
How would such a rule be properly defined, as it's clear this is not the correct way?
Apparently I'm not understanding the BYSETPOS property clearly.
The doc linked above states:
bysetpos - If given, it must be either an integer, or a sequence of integers, positive or negative. Each given integer will specify an occurrence number, corresponding to the nth occurrence of the rule inside the frequency period. For example, a bysetpos of -1 if combined with a MONTHLY frequency, and a byweekday of (MO, TU, WE, TH, FR), will result in the last work day of every month.
So I thought it was correct to use BYSETPOS to specify the desired occurrences within the frequency period (as a sequence of integers).
Thanks for your guidance.