Skip Menu |

This queue is for tickets about the iCal-Parser CPAN distribution.

Report information
The Basics
Id: 93333
Status: open
Priority: 0/
Queue: iCal-Parser

People
Owner: Nobody in particular
Requestors: pere [...] hungry.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Provide way to get recurrence information?
Date: Tue, 25 Feb 2014 10:53:07 +0100
To: bug-iCal-Parser [...] rt.cpan.org
From: Petter Reinholdtsen <pere [...] hungry.com>
Hi. I am trying to write a converter from ical to plan, allowing me to inject text/calendar emails into my plan calendar. I try to use the iCal::Parser perl module for this, but while plan understand and support recurring events, I am unable to get iCal::Parser to provide information about which events are recurring. The events are expanded, but no information about the recurrence patterns is available. Can you please extend iCal::Parser to make the details from RRULE available to the perl program using the module? -- Happy hacking Petter Reinholdtsen
From: bruce [...] momjian.us
On Tue Feb 25 04:53:18 2014, pere@hungry.com wrote: Show quoted text
> Can you please extend iCal::Parser to make the details from RRULE > available to the perl program using the module?
I needed to identify which events were recurring and which were not. I found that the UID is the same for recurring events, so I could identify a recurring event if there was more than one matching UID returned. Not sure if that helps you though.
One thing I just realized is that multi-day events also have the same UID, so you can't use just multiple entries with the same UID to identify recurring events. What I did was to sort by UID and start-date, and then exclude events as recurring if the end date of one entry is the same as the start date of the next with the same UID.