I'm in middle of creating calendar app. for iPhone. I get calendar events from google calendars (without expanding recurrence) Then tried to expand recurrence events by writing codes from scratch. I did get iCalendar format from the web, for example the following one:
http://www.kanzaki.com/docs/ical/rrule.html
but expanding recurrence events from scratch looks like bad idea too complicated that error prone.
So, does anyone know where to find algorithm for "expanding recurrence events"?
prefers objective-c but Java and the languages alike is OK. (I tried to look at Sunbird but couldn't analyze well)
Please advise!
Katsumi
Any reason why you don't ask Google Calendar to expand it for you? Admittedly that means more data, but at least then you'll know you've got the same results as Google Calendar.
You can use ical4j but I've personally had some implementation issues with it, particularly in terms of it using the system default time zone.
(In general, my advice would be to avoid writing a calendar app at all - calendaring is nightmarishly complicated. Any reason for writing a replacement for the iPhone's calendar? "Wanting to learn about calendaring" is a perfectly valid reason, although you're basically embracing insanity at that point.)