add_time


Description:

[ Version ( since = "0.2.0" ) ]
public void add_time (GDWhen when)

Adds when to the event as a time period when the event happens, and increments its reference count.

Duplicate times will not be added to the list.

Note: add_time and set_recurrence are mutually exclusive, as the server doesn't support positive exceptions to recurrence rules. If recurrences are required, use set_recurrence. Note that this means reminders cannot be set for the event, as they are only supported by GDWhen. No checks are performed for these forbidden conditions, as to do so would break libgdata's API; if both a recurrence is set and a specific time is added, the server will return an error when the CalendarEvent is inserted using insert_entry.

Parameters:

this

a CalendarEvent

when

a GDWhen to add