JMB-Technology-Limited / RRuleUnravel

Takes a ICAL/ICS RRULE and expands it.
http://ican.openacalendar.org/
Other
2 stars 1 forks source link

Test for this example #31

Open jarofgreen opened 9 years ago

jarofgreen commented 9 years ago

http://www.kanzaki.com/docs/ical/rrule.html

All examples assume the Eastern United States time zone.

Every four years, the first Tuesday after a Monday in November, forever (U.S. Presidential Election day):

DTSTART;TZID=US-Eastern:19961105T090000 RRULE:FREQ=YEARLY;INTERVAL=4;BYMONTH=11;BYDAY=TU;BYMONTHDAY=2,3,4, 5,6,7,8

==> (1996 9:00 AM EST)November 5 (2000 9:00 AM EST)November 7 (2004 9:00 AM EST)November 2 ...

jarofgreen commented 9 years ago

Just noticed this example is from an old RFC that has now been preceded by RFC 5545; check it's still valid!