Semen A. Ustimenko is not on the time zone mailing list; direct replies appropriately. --ado -----Original Message----- From: Semen A. Ustimenko [mailto:semenu@online.sinor.ru] Sent: Tuesday, January 16, 2001 3:30 PM To: tz@elsie.nci.nih.gov Subject: etcetera patch Hi! I've discovered that definition for GMT+N anf GMT-N are just wrong. I.e. setting zone to GMT+6 you really get -6 hours offset from GMT. And this is quite correct as is defined in etcetera file! So, suppose follwoing patch worth commiting. Index: src/share/zoneinfo/etcetera =================================================================== RCS file: /usr/home/ncvs/src/share/zoneinfo/etcetera,v retrieving revision 1.1.2.4 diff -c -r1.1.2.4 etcetera *** src/share/zoneinfo/etcetera 1999/01/21 21:35:07 1.1.2.4 --- src/share/zoneinfo/etcetera 2000/12/04 15:14:56 *************** *** 37,65 **** # zic -l GMT-12 # so we moved the names into the Etc subdirectory. ! Zone Etc/GMT-14 14 - GMT-14 # 14 hours ahead of GMT ! Zone Etc/GMT-13 13 - GMT-13 ! Zone Etc/GMT-12 12 - GMT-12 ! Zone Etc/GMT-11 11 - GMT-11 ! Zone Etc/GMT-10 10 - GMT-10 ! Zone Etc/GMT-9 9 - GMT-9 ! Zone Etc/GMT-8 8 - GMT-8 ! Zone Etc/GMT-7 7 - GMT-7 ! Zone Etc/GMT-6 6 - GMT-6 ! Zone Etc/GMT-5 5 - GMT-5 ! Zone Etc/GMT-4 4 - GMT-4 ! Zone Etc/GMT-3 3 - GMT-3 ! Zone Etc/GMT-2 2 - GMT-2 ! Zone Etc/GMT-1 1 - GMT-1 ! Zone Etc/GMT+1 -1 - GMT+1 ! Zone Etc/GMT+2 -2 - GMT+2 ! Zone Etc/GMT+3 -3 - GMT+3 ! Zone Etc/GMT+4 -4 - GMT+4 ! Zone Etc/GMT+5 -5 - GMT+5 ! Zone Etc/GMT+6 -6 - GMT+6 ! Zone Etc/GMT+7 -7 - GMT+7 ! Zone Etc/GMT+8 -8 - GMT+8 ! Zone Etc/GMT+9 -9 - GMT+9 ! Zone Etc/GMT+10 -10 - GMT+10 ! Zone Etc/GMT+11 -11 - GMT+11 ! Zone Etc/GMT+12 -12 - GMT+12 --- 37,65 ---- # zic -l GMT-12 # so we moved the names into the Etc subdirectory. ! Zone Etc/GMT-14 -14 - GMT-14 # 14 hours ahead of GMT ! Zone Etc/GMT-13 -13 - GMT-13 ! Zone Etc/GMT-12 -12 - GMT-12 ! Zone Etc/GMT-11 -11 - GMT-11 ! Zone Etc/GMT-10 -10 - GMT-10 ! Zone Etc/GMT-9 -9 - GMT-9 ! Zone Etc/GMT-8 -8 - GMT-8 ! Zone Etc/GMT-7 -7 - GMT-7 ! Zone Etc/GMT-6 -6 - GMT-6 ! Zone Etc/GMT-5 -5 - GMT-5 ! Zone Etc/GMT-4 -4 - GMT-4 ! Zone Etc/GMT-3 -3 - GMT-3 ! Zone Etc/GMT-2 -2 - GMT-2 ! Zone Etc/GMT-1 -1 - GMT-1 ! Zone Etc/GMT+1 1 - GMT+1 ! Zone Etc/GMT+2 2 - GMT+2 ! Zone Etc/GMT+3 3 - GMT+3 ! Zone Etc/GMT+4 4 - GMT+4 ! Zone Etc/GMT+5 5 - GMT+5 ! Zone Etc/GMT+6 6 - GMT+6 ! Zone Etc/GMT+7 7 - GMT+7 ! Zone Etc/GMT+8 8 - GMT+8 ! Zone Etc/GMT+9 9 - GMT+9 ! Zone Etc/GMT+10 10 - GMT+10 ! Zone Etc/GMT+11 11 - GMT+11 ! Zone Etc/GMT+12 12 - GMT+12
From: Semen A. Ustimenko [mailto:semenu@online.sinor.ru] Sent: Tuesday, January 16, 2001 3:30 PM
I've discovered that definition for GMT+N anf GMT-N are just wrong. I.e. setting zone to GMT+6 you really get -6 hours offset from GMT. And this is quite correct as is defined in etcetera file!
Thanks for pointing this out. Apparently this bug was introduced in the Great TZ Renaming of 1994, but nobody has noticed it until now. I'll draft a proposed fix in my next patch. Draft 5 of the next version of POSIX will let you say, for example, TZ='<GMT+6>-6' in order to get a time zone named "GMT+6" that is 6 hours ahead of UTC. Once support for this is added, "TZ=Etc/GMT+6" will be completely obsolete.
On Fri, 9 Feb 2001, Paul Eggert wrote:
From: Semen A. Ustimenko [mailto:semenu@online.sinor.ru] Sent: Tuesday, January 16, 2001 3:30 PM
I've discovered that definition for GMT+N anf GMT-N are just wrong. I.e. setting zone to GMT+6 you really get -6 hours offset from GMT. And this is quite correct as is defined in etcetera file!
Thanks for pointing this out. Apparently this bug was introduced in the Great TZ Renaming of 1994, but nobody has noticed it until now. I'll draft a proposed fix in my next patch.
Wow!... It will be nice to see fixed, as i count GMT+-N the most understandable way to set time.
Draft 5 of the next version of POSIX will let you say, for example, TZ='<GMT+6>-6' in order to get a time zone named "GMT+6" that is 6 hours ahead of UTC. Once support for this is added, "TZ=Etc/GMT+6" will be completely obsolete.
A-aa... Maybe... Fine idea, except it's not quite clear what is the meaning of those numbers in new TZ line. But, this isn't a problem. Bye!
participants (3)
-
Olson, Arthur David (NCI) -
Paul Eggert -
Semen A. Ustimenko