You pretty much have to read the timezone information out of the iCal
specification, and i think this is given in Olson format, and then convert
it to your target format. Once you have the timezone into something that
.NET understands, if i recall correctly, you can then use the .NET runtime
to convert it to your target TZ and that should take Daylight saving into
account.

Frank Mantek
Google

On 5/21/07, Kulvinder Singh <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a recurring event in Google Calendar in PST (GMT-8:00) whose
> recurrence element is :
>
>
> <gd:recurrence>DTSTART;TZID=America/Los_Angeles:20070220T080000
>
> DTEND;TZID=America/Los_Angeles:20070220T083000
>
> RRULE:FREQ=WEEKLY;INTERVAL=1;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>
>
>
>
> which suggests that the event is ocurring every thursday 8:00 AM to 8:30
> AM.
>
>
>
> Now i want to parse this ical string which is not difficult. I have
> already done this but the problem is i want to parse it to a different time
> zone say EST(GMT-5:00).
>
>
>
> How do i know that what this event means in EST ?
>
>
>
> Note that i have to take care of Daylight savings as well so i cant say
> that this event is always 3 hours ahead in EST since during PDT (GMT -7:00)
> this difference becomes 2 hours.
>
>
>
> Any idea how this can be achieved ?
>
>
>
> Should i also need to read the VTIMEZONE information in the ical string
> and check whether the event started in GMT-7:00 or GMT -8:00 and convert the
> time to local time ?
>
>
>
> Kindly help ASAP
>
>
>
> Regards
>
> Kulvinder Singh
>
> ------------------------------
> Don't be flakey. Get Yahoo! Mail for 
> Mobile<http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mail>and
> always stay 
> connected<http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mail>to 
> friends.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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