Replies: 4 comments
-
Hi @marcoczen! With the example of BYSETPOS is not a rule by itself, actually it limits the rule. It means take the n-th instance from the calculated instances corresponding to the rest of the rule. So in our case it means take the last day at the end of the month of the working days. Hope it clarifies :) |
Beta Was this translation helpful? Give feedback.
-
Hi @boryn ,
Noted ...
-1 ? nth instance ... but its not 2 or 3 or 1 but -1 ? Also bysetpos works on byday or bymonthday ? or both ? Sorry if i am a dumbass.... |
Beta Was this translation helpful? Give feedback.
-
Background info for the next noob ... From https://datatracker.ietf.org/doc/html/rfc5545#section-3.8.5 The BYSETPOS rule part specifies a COMMA-separated list of values
|
Beta Was this translation helpful? Give feedback.
-
Update ... Without bysetpos set to -1 or 1, we could have multiple dates in the same month ... |
Beta Was this translation helpful? Give feedback.
-
Guys,
With reference to
rrule("FREQ=MONTHLY;INTERVAL=1;BYSETPOS=-1;BYDAY=MO,TU,WE,TH,FR;BYMONTHDAY=13,14,15;COUNT=12")
I just cant seem to understand the purpose of 'bysetpos' ?
Anybody here can explain it ?
Thanks in advance ...
Beta Was this translation helpful? Give feedback.
All reactions