TimeZones Abbreviated 
Author Message
 TimeZones Abbreviated

Hello,

Anyone figure out how to get abbreviated timezones?

I have been using the TimeZone class to get the long form:

"Eastern Standard Time" but I want:

"EST", "GMT", etc.

Thanks!

--
Tim Hodgson
ExclamationSoft
http://www.*-*-*.com/
--
http://www.*-*-*.com/ - Command-line email
http://www.*-*-*.com/ - The Next Generation Mail Component
http://www.*-*-*.com/ - Is your site up?



Sat, 07 Aug 2004 22:26:54 GMT  
 TimeZones Abbreviated
Hello Tim,

I am afraid there is not a direct way to get the Abbreviated time zone
name. You can use a table of the long forms and short forms to perform the
conversion. However, it is a little complex.

Best regards,

Lion Shi, MCSE, MCSD
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.  2001 Microsoft Corporation. All rights
reserved.
--------------------
    From: "Tim Hodgson - http://www.ExclamationSoft.com"

    Subject: TimeZones Abbreviated
    Date: Tue, 19 Feb 2002 09:26:54 -0500
    Lines: 24
    Organization: ExclamationSoft Corporation
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Newsreader: Microsoft Outlook Express 6.00.2462.0000
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000

    Newsgroups: microsoft.public.dotnet.languages.CSharp
    NNTP-Posting-Host: 207.50.208.7
    Path: cpmsftngxa07!tkmsftngp01!tkmsftngp03
    Xref: cpmsftngxa07 microsoft.public.dotnet.languages.csharp:41098
    X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

    Hello,

    Anyone figure out how to get abbreviated timezones?

    I have been using the TimeZone class to get the long form:

    "Eastern Standard Time" but I want:

    "EST", "GMT", etc.

    Thanks!

    --
    Tim Hodgson
    ExclamationSoft
    http://www.ExclamationSoft.com
    --
    http://www.NetMailBot.com - Command-line email
    http://www.MailListBot.com - The Next Generation Mail Component
    http://www.WebWatchBot.com - Is your site up?



Mon, 09 Aug 2004 14:02:43 GMT  
 TimeZones Abbreviated
Since the abreviated version of the TimeZone is actually the{*filter*}letters of
the full words how about you split the string you get where you have a space
and take the capsed first letter of each word in the list. It may not be
perfect but it will work for most timezones.



Quote:
> Hello,

> Anyone figure out how to get abbreviated timezones?

> I have been using the TimeZone class to get the long form:

> "Eastern Standard Time" but I want:

> "EST", "GMT", etc.

> Thanks!

> --
> Tim Hodgson
> ExclamationSoft
> http://www.*-*-*.com/
> --
> http://www.*-*-*.com/ - Command-line email
> http://www.*-*-*.com/ - The Next Generation Mail Component
> http://www.*-*-*.com/ - Is your site up?



Tue, 10 Aug 2004 01:14:36 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Recognizing abbreviated commands using `tries'

2. Abbreviated '...' file names

3. Automatic DateTime formating between TimeZones?

4. Date and Time in Different Timezones

5. time_t, tm*, and timezones (please read!)

6. Q: conversion between timezones

7. time_t, tm*, and timezones (please read!)

8. !! Fun With Timezones !!

9. Timezones

10. Timezones

11. Timezones

12. Timezones

 

 
Powered by phpBB® Forum Software