Help:Time zone references 
Author Message
 Help:Time zone references

I'm trying to find a list of the references to the string used in tzset.
Where 'TZ=' a 3 character string representing the name of the time zone. I
understand the relevence of the digits required after these 3 characters,
and the following optional characters. I have not been able to find any
reference to the first three characters though, Except that it indicates
the name of the timezone you specify.

Any pointers in the right direction would be greatly appreciated.
Thanks.




Wed, 09 May 2001 03:00:00 GMT  
 Help:Time zone references
: I'm trying to find a list of the references to the string used in tzset.
: Where 'TZ=' a 3 character string representing the name of the time zone. I
: understand the relevence of the digits required after these 3 characters,
: and the following optional characters. I have not been able to find any
: reference to the first three characters though, Except that it indicates
: the name of the timezone you specify.

There's probably a list on the net somewhere, but this is what I have;
note that GMT's a bit tricky, since it's both the name of a non-zone
time roughly equivalent to UT, and the time zone used by the British
Isles in winter.

#define TWTIME 0
#define TWDST 1
#define BADZONE 24 * 60 + 1             /* more than the minutes in a day */

  static struct Zone {
        char *name;
        int minutes;
        int dst;
  } zones[] = {
        "gmt",          0*60, TWTIME,    /* Greenwich */
        "utc",          0*60, TWTIME,
        "ut",           0*60, TWTIME,
        "nzst",        -12*60, TWTIME,   /* New Zealand */
        "jst",         -9*60, TWTIME,    /* Japan */
        "kst",         -9*60, TWTIME,    /* Korea */
        "ist",         -5*60-30, TWTIME, /* India */
        "eet",         -2*60, TWTIME,    /* Eastern Europe */
        "cet",         -1*60, TWTIME,    /* Central Europe */
        "met",         -1*60, TWTIME,    /* Middle Europe */
        "mez",         -1*60, TWTIME,    /* Middle Europe (?) */
        "wet",          0*60, TWTIME,    /* Western Europe */
        "nst",          3*60+30, TWTIME, /* Newfoundland */
        "ast",          4*60, TWTIME,    /* Atlantic */
        "est",          5*60, TWTIME,    /* Eastern */
        "cst",          6*60, TWTIME,    /* Central */
        "mst",          7*60, TWTIME,    /* Mountain */
        "pst",          8*60, TWTIME,    /* Pacific */
        "akst",         9*60, TWTIME,    /* Alaska */
        "hast",         10*60, TWTIME,   /* Hawaii-Aleutian */
        "hst",          10*60, TWTIME,   /* Hawaii */
        "sst",          11*60, TWTIME,   /* Samoa */

        "nzdt",        -12*60, TWDST,     /* New Zealand */
        "kdt",         -9*60, TWDST,      /* Korea */
        "msz",         -1*60, TWDST,      /* Middle Europe (?) */
        "bst",          0*60, TWDST,      /* Britain */
        "ndt",          2*60+30, TWDST,   /* Newfoundland (DDST) */
        "adt",          4*60, TWDST,      /* Atlantic */
        "edt",          5*60, TWDST,      /* Eastern */
        "cdt",          6*60, TWDST,      /* Central */
        "mdt",          7*60, TWDST,      /* Mountain */
        "pdt",          8*60, TWDST,      /* Pacific */
        "akdt",         9*60, TWDST,      /* Alaska */
        "hadt",         10*60, TWDST,     /* Hawaii-Aleutian */

        (char *)NULL,   BADZONE,    0

Quote:
};

Will



Wed, 09 May 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to convert local time with specific time zone to UTC time in Win32 API

2. How to convert local time to gmt using a local variable time zone per process/thread

3. Need help with time zone trouble

4. set date/time/time zone dialog

5. Real time From Time Zone information

6. Obtain Time Zone

7. Getting time zone information?

8. Time Zones

9. How to maintain TimeStamp consistency across Time Zones?

10. Dataset DateTime column value affected by time zone setting

11. Need time zone conversion routine/program/function that is callable, pcumming

12. localtime() / time zone question

 

 
Powered by phpBB® Forum Software