Getting GMT offset for city in C#


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Getting GMT offset for city in C#

  1. #1
    Mayank Guest

    Getting GMT offset for city in C#


    Hi,

    Q: how to get the Coordinated Universal Time (UTC; previously known as Greenwich
    Mean Time (GMT)) for ANY given City for the current local time?? I just have
    the city name and using that I need to calculate the UTC Offset for that
    city.

    Highly appreciate your help.

    Thanks much, Mayank.

  2. #2
    Jay Glynn Guest

    Re: Getting GMT offset for city in C#

    Take a look at System.TimeZone. You will have to know the time zone of the
    city.

    "Mayank" <vyasmayank@hotmail.com> wrote in message
    news:3d81c757$1@10.1.10.29...
    >
    > Hi,
    >
    > Q: how to get the Coordinated Universal Time (UTC; previously known as

    Greenwich
    > Mean Time (GMT)) for ANY given City for the current local time?? I just

    have
    > the city name and using that I need to calculate the UTC Offset for that
    > city.
    >
    > Highly appreciate your help.
    >
    > Thanks much, Mayank.




  3. #3
    Mayank Guest

    Re: Getting GMT offset for city in C#


    Thanks Jay...

    Actually I'm wondering if there is any .net library or any other web service
    that gives time zones for all city code related to airport industry...

    Thanks, Mayank.

    "Jay Glynn" <jlsglynn@hotmail.com> wrote:
    >Take a look at System.TimeZone. You will have to know the time zone of the
    >city.
    >
    >"Mayank" <vyasmayank@hotmail.com> wrote in message
    >news:3d81c757$1@10.1.10.29...
    >>
    >> Hi,
    >>
    >> Q: how to get the Coordinated Universal Time (UTC; previously known as

    >Greenwich
    >> Mean Time (GMT)) for ANY given City for the current local time?? I just

    >have
    >> the city name and using that I need to calculate the UTC Offset for that
    >> city.
    >>
    >> Highly appreciate your help.
    >>
    >> Thanks much, Mayank.

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center