Question

I'm studying RFC 2445 but having some trouble understanding how to represent a recurring event with a pattern something like this:

every Monday from 2:00 pm to 3:00 pm and every Thursday from 10:00 am to 11:00 am.

Is this possible? If so, could you point me in the right direction? Thanks.

Was it helpful?

Solution

Though it does not change much, you should study RFC5545 as it supersed RFC2445.

to do what you want you need to set a rule which occurs every week, on monday and thursdays at 10 and 14 hours and then select the second and third isntances to only have monday 2pm and thursday 10am.

translated to RRULE this becomes

RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TH;BYHOUR=10,14;BYSETPOS=2,3

the duration is set by the DTSTART and DTEND: just put the first instance of your calendar event and make the DTEND one hour after DTSTART.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top