I try to perform some hack :
try {
if (calendarEntry.getSummary().getPlainText
().equalsIgnoreCase("XXX"))
{
calendarEntry.setSummary(new PlainTextConstruct
("YYY"));
}
else
{
calendarEntry.setSummary(new PlainTextConstruct
("XXX"));
}
calendarEntry = calendarEntry.update();
} catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE,
null, ex);
} catch (ServiceException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE,
null, ex);
}
// Hopefully getUpdated will return latest time. Not always up-
to-date.
System.out.println("Calendar Entry = " +
calendarEntry.getUpdated());
On Jul 20, 10:06 pm, Acorn <[email protected]> wrote:
> I also wanted to do this!
>
> Is it maybe possible to get it out of the headers of the response or
> something?
>
> On Jul 19, 4:56 pm, yccheok <[email protected]> wrote:
>
> > I was wondering, is there any where I can retrieve "current time" of a
> > CalendarEntry? I wish to know the current time from google server
> > point of view (The red arrow on the left of the calendar), instead of
> > my machine time.
>
> > Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---