Hello Massimo, As mentioned in the FAQ<http://code.google.com/apis/calendar/faq.html#recurring_exception>, to create an exception to a recurring event, you will need to create a new event that refers to the recurring event (by setting the originalEvent element) and adding exception information to this event. You can easily reproduce this behavior by creating a recurring event in the Calendar web UI and canceling one occurrence. When retrieving this event from the API, you will notice 2 events: * one being the main recurring event. * the other one being the exception.
Here are example entries (without boilerplate data): [RECURRING_EVENT] <entry> <id> http://www.google.com/calendar/feeds/default/events/92jh1b6v7g9d9910v76gh90mm4 </id> <title>Test Recurring Event</title> <gd:eventStatus value="http://schemas.google.com/g/2005#event.confirmed"/> <gd:where valueString=""/> <gd:recurrence>DTSTART;TZID=America/Los_Angeles:20111108T110000 DTEND;TZID=America/Los_Angeles:20111108T120000 RRULE:FREQ=WEEKLY;BYDAY=TU BEGIN:VTIMEZONE TZID:America/Los_Angeles X-LIC-LOCATION:America/Los_Angeles BEGIN:DAYLIGHT TZOFFSETFROM:-0800 TZOFFSETTO:-0700 TZNAME:PDT DTSTART:19700308T020000 RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU END:DAYLIGHT BEGIN:STANDARD TZOFFSETFROM:-0700 TZOFFSETTO:-0800 TZNAME:PST DTSTART:19701101T020000 RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU END:STANDARD END:VTIMEZONE </gd:recurrence> <!-- ... --> </entry> [/RECURRING_EVENT] [EXCEPTION] <entry> <id> http://www.google.com/calendar/feeds/default/events/92jh1b6v7g9d9910v76gh90mm4_20111122T190000Z </id> <category scheme="http://schemas.google.com/g/2005#kind" term=" http://schemas.google.com/g/2005#event"/> <!-- The 2 following lines are exceptions to the main recurring events --> * <title>Test Recurring Event - Exception</title>* * <gd:eventStatus value="http://schemas.google.com/g/2005#event.canceled"/> * <gd:where valueString=""/> <!-- This element gives information about the original event and which occurrence is being modified --> * <gd:originalEvent href=" http://www.google.com/calendar/feeds/default/private/full/92jh1b6v7g9d9910v76gh90mm4" id="92jh1b6v7g9d9910v76gh90mm4">* * <gd:when startTime="2011-11-22T11:00:00.000-08:00"/>* * </gd:originalEvent>* <!-- ... --> </entry> [EXCEPTION] Best, Alain On Fri, Nov 4, 2011 at 7:22 AM, Massimo Cafaro <[email protected] > wrote: > I am wondering how to achieve the same effect achieved by EXDATE for > RFC2445. So, I do not want to add an exception to a recurrence; I want to > exclude some dates (and times). Is there any way in Google Calendar? > > I know that Google correctly interprets RFC2445 recurrences containing > EXDATE clauses when importing events from an external calendar. The > question is how to add EXDATE programmatically. Thank you in advance. > > -- > You received this message because you are subscribed to the Google > Groups "Google Calendar Data API" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://code.google.com/apis/calendar/community/forum.html > -- Alain Vongsouvanh | Developer Programs Engineer -- You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/calendar/community/forum.html
