Hi Taivo,

As you know, getTimes() returns a list.  As far as I'm aware, there
should be one and only one element in the list for a non-recurring
event returned from the calendar servers.  So, event.getTimes().get(0)
should work -- though, if I were coding it, I would probably put in the
appropriate checks just to make sure.

As for the addTime method -- if you simply add a time to an existing
event object retrieved from the server, it will get sent in the XML as
a second gd:when element.  From my testing, this additional gd:when
element is ignored by the server (as is evident in the response xml).
Thus, to change the date/time for an event, either retrieve the current
object out of the list and modify it, or empty the list and add a new
When object.

Let us know if you have any further questions.

Happy coding,

-Ryan


--~--~---------~--~----~------------~-------~--~----~
 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://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to