I am developing a front-end application accessible for blind people. I create, delete and update events successfully. My problem is that I want to get the properties of a recurring event, i.e if it’s daily, monthly etc, so I can show to my user what the recurring event is and to change it.
The only way I can think of is by parsing the Recurrence string. Though, I find it very difficult and time-consuming. Can anyone think of a different solution to my problem?
If I understand the question correctly, you want to display something like this:
Xyz every day at 5:00 pm starting on 6/1/2011 until 6/6/2011However, I think this forces you to work backwards based on how recurring events are accessed in the API. All the
whenproperties for the recurring events are stored in a list (e.g., one entry for each day above). In other words, parsing these strings and determining the relation seems the only obvious way to actually determine the relation. ItReference: http://code.google.com/apis/calendar/data/2.0/developers_guide_dotnet.html
Edit: Actually, it seems that the recurrence string is accessible too, although I can’t find it documented online. The
CalendarEventEntryclass ingdata.calendar.datahas the attributerecurrenceof thegdata.data.Recurrenceclass. For reference, here’s the comment provided in the function definition in the source file (I’m using the Python version):Edit 2:
Related question, but no answer – Python solution to parse Google calendar's recurrencies.