Also, if you have retrieved a regular (single) calendar event feed, as
described here:
http://code.google.com/apis/gdata/calendar.html#get_feed
You can do the following to get the timezone for that specific calendar:
TimeZoneProperty tzProp = myFeed.getExtension(TimeZoneProperty.class);
if (tzProp != null) {
tz = tzProp.getValue();
}
-- Kyle
On 10/5/06, Kyle Marvin <[EMAIL PROTECTED]> wrote:
> Hi Adrian,
>
> Follow the instructions described here for obtaining a list of a
> user's calendars:
>
> http://code.google.com/apis/gdata/calendar.html#list_calendars
>
> This will get you a feed of type:
> com.google.gdata.data.calendar.CalendarFeed, which contains entries of
> type: com.google.gdata.data.calendar.CalendarEntry.
>
> From there, obtaining the time zone of a particular calendar can be done by:
>
> String timezone = calendarEntry.getTimeZone().getValue();
>
> Hope this helps!
>
> -- Kyle
>
> On 10/5/06, ade350 <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > Is it possible to get a user's calendar timezone through the Java
> > Client Library? Have been looking for awhile but can't find anyway to
> > do it. Thanks.
> >
> > Adrian
> >
> >
> > > >
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---