.NET does not have the same kind of TimeZone infrastructure as Java does. All you can do is (from the top of my head, i tried to find something precooked, but did not - java and .NET worlds so rarely touch each other....):
write a short java program to get a list of all IDs. Together with the ID, output the TZ offset and the daylight saving time... use that list to create a .NET mapping, where you use the TZ offset in .NET and the daylight setting to find the correct string... Before that though, i would create a .NET program, enumerating all the .NET TZs, output the same information as with Java to see if they match (I have a hunch, that they might do....). And if that code is nicely encapsulated send it to me and we include it into the next .NET release, as a helper class.... Or, put it into the issue list as a feature request.... Frank Mantek Google On 4/10/07, Kulvinder Singh <[EMAIL PROTECTED]> wrote: > > Thanks a lot for your kind reply. > > I looked into the link which you have given me but the file corresponding > "TimeZone.h" is in C++ but i am looking for it to be used in C#. I know i > can create a Cross Language Library in C++ in .NET and use it in C#. > > Isn't there a simpler way to achieve my task ? I think there must be. > > Regards > Kulvinder Singh > > *"Ryan Boyd (Google)" <[EMAIL PROTECTED]>* wrote: > > Hi Kulvinder, > > A colleague of mine pointed me to the following as a possible solution to > the problem you're experiencing: > http://icu-project.org/apiref/icu4c/ > > Cheers, > -Ryan > > On 4/8/07, Kulvinder Singh <[EMAIL PROTECTED]> wrote: > > > > Thanks for your replu. > > > > I am using C# Client library of Google API. Any idea how i can get the > > mapping in this ? > > > > Thanks in advance. > > > > *"Ryan Boyd (Google)" < [EMAIL PROTECTED]>* wrote: > > > > > > Hi Kulvinder, > > > > The TZIDs supported by the API are the standard TZIDs used in Java. I > > think you should be able to get them via > > java.util.TimeZone.getAvailableIDs(). There's a large number of them > > in that list -- please let me know if you run into any problems with > > this strategy. > > > > Thanks, > > > > -Ryan > > > > > > On Apr 5, 10:10 pm, Kulvinder Singh wrote: > > > Hi, > > > > > > I need to know, is there a way by which i can generate a mapping > > between TimeZone selected by a user on Windows and the corresponding TZID as > > required by Google in ICAL string for Recurrence ? > > > > > > I have heard of Olson Database but cant Google provide any API or > > something similar so that we also can provide the EXACT TZID which google > > expects to parse Recurring events or is there any simpler way to do the same > > in C# ? > > > > > > I think this must be simple. Google also has a mapping for TZIDs based > > on the Country in the Calendar Settings. > > > > > > Please help. > > > > > > --------------------------------- > > > Don't pick lemons. > > > See all the new 2007 cars at Yahoo! Autos. > > > > > > ------------------------------ > > Now that's room service! Choose from over 150,000 hotels > > in 45,000 destinations on Yahoo! > > Travel<http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--%0A>to > > find your fit > > > > > > ------------------------------ > No need to miss a message. Get email on-the-go > <http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail%0A> > with Yahoo! Mail for Mobile. Get > started.<http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail%0A>> > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
