Short notation for a Time Zone


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Short notation for a Time Zone

  1. #1
    Hari Somaskanthan Guest

    Short notation for a Time Zone


    Hi,

    I have used the Windows API function (i.e. GetTimeZoneInformation()) to retrieve
    the Time Zone for the current machine. I would like to get the 3 chars short
    notation for the Time Zone description such as GMT, EST, MST, PST, etc. How
    do I get this 3 chars notation ? Is there any standard way of getting this
    information ?

    Thanks for your help
    Hari

  2. #2
    Monte Hansen Guest

    Re: Short notation for a Time Zone


    Hari, that string is stored in the TIME_ZONE_INFORMATION.StandardName or the
    TIME_ZONE_INFORMATION.DaylightName fields. The return value of GetTimeZoneInformation()
    determines which field to refer to.

    Hope this helps.

    Monte

    "Hari Somaskanthan" <Hari_S1@Yahoo.com> wrote:
    >
    >Hi,
    >
    >I have used the Windows API function (i.e. GetTimeZoneInformation()) to

    retrieve
    >the Time Zone for the current machine. I would like to get the 3 chars short
    >notation for the Time Zone description such as GMT, EST, MST, PST, etc.

    How
    >do I get this 3 chars notation ? Is there any standard way of getting this
    >information ?
    >
    >Thanks for your help
    >Hari



  3. #3
    Monte Hansen Guest

    Re: Short notation for a Time Zone


    Hari, that string is stored in the TIME_ZONE_INFORMATION.StandardName or the
    TIME_ZONE_INFORMATION.DaylightName fields. The return value of GetTimeZoneInformation()
    determines which field to refer to.

    Hope this helps.

    Monte

    "Hari Somaskanthan" <Hari_S1@Yahoo.com> wrote:
    >
    >Hi,
    >
    >I have used the Windows API function (i.e. GetTimeZoneInformation()) to

    retrieve
    >the Time Zone for the current machine. I would like to get the 3 chars short
    >notation for the Time Zone description such as GMT, EST, MST, PST, etc.

    How
    >do I get this 3 chars notation ? Is there any standard way of getting this
    >information ?
    >
    >Thanks for your help
    >Hari



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