문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top