Extend import of recurrence rules

Support has been implemented for recurrence rule parts BYMONTH, BYMONTHDAY and
BYDAY.  A new test has been added.

Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lars Henriksen
2020-05-28 14:45:00 +02:00
committed by Lukas Fleischer
parent d2791b046a
commit 382e60ba69
8 changed files with 2284 additions and 29 deletions

View File

@@ -46,7 +46,25 @@ DTSTAMP:
UID:
DTSTART;VALUE=DATE:20200502
DTEND;VALUE=DATE:20200504
DESCRIPTION:The first weekend in May is a two-day event.
DESCRIPTION:The first weekend in May is a two-day event.\nNon-repeating event.
SUMMARY:First weekend in May
END:VEVENT
BEGIN:VEVENT
DTSTAMP:
UID:
DTSTART;VALUE=DATE:20200502
DTEND;VALUE=DATE:20200504
DESCRIPTION:First weekend in May is a two-day event!\nRepeating event\, three years.
SUMMARY:First weekend in May
RRULE:FREQ=YEARLY;BYDAY=1SA;BYMONTH=5;COUNT=3
END:VEVENT
BEGIN:VEVENT
DTSTAMP:
UID:
DTSTART:20200502T000000
DTEND:20200504T000000
DESCRIPTION:First weekend in May is a two-day event!\nRepeating appointment.
SUMMARY:First weekend in May
RRULE:FREQ=YEARLY;BYDAY=1SA;BYMONTH=5;COUNT=3
END:VEVENT
END:VCALENDAR