thisgeek / topiCal

MIT License
0 stars 1 forks source link

Respect RRULE and EXDATE #2

Open thisgeek opened 10 years ago

thisgeek commented 10 years ago

iCalendar format uses RRULE to describe recurring events, and EXDATE to exclude dates from recurrence. Currently NetworkCalendar is only concerned with the DTSTART property, which only gets us the start date of a recurrence. See http://www.kanzaki.com/docs/ical/rrule.html.

thisgeek commented 10 years ago

Given RRULE:FREQ=MONTHLY;UNTIL=20161130T000000Z;BYDAY=-1TU, we must calculate the start and end time on the last Tuesday (-1TU) of each month after the start date until 30 November 2016.