Search code examples
icalendarrfc2445rrulerfc5545

iCalendar (RFC5545) recurrence rule multiple times a day


How can I make an event occur multiple times a day using the RRULE specified in RFC5545?

Lets say I would like an event to happen every other week on Monday and Friday at 11AM and 18PM. Is it possible to format the RRULE like something as the following:

RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,FR;[TIMES=110000,180000]

Thanks


Solution

  • you have to use the byhour The BYHOUR rule part specifies a COMMA- separated list of hours of the day. Valid values are 0 to 23.

    so that would be :

    RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,FR;BYHOUR=11,18