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