-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks