From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Carlos Rodriguez Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Problem with timezone (2) Date: Mon, 14 Jul 2003 07:57:38 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3F126272.27246.12F620@localhost> Reply-To: crodriguez@eliop.es NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1058162273 16442 80.91.224.249 (14 Jul 2003 05:57:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2003 05:57:53 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Jul 14 07:57:51 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19bwLO-0004Gq-00 for ; Mon, 14 Jul 2003 07:57:50 +0200 Original-Received: (qmail 31806 invoked by uid 5); 14 Jul 2003 05:58:29 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 31797 invoked by uid 49493); 14 Jul 2003 05:58:28 -0000 Original-Received: from crodriguez@eliop.es by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-0.5/5.0):. Processed in 0.65255 secs); 14 Jul 2003 05:58:28 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 14 Jul 2003 05:58:27 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HI000AAL39E27@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 14 Jul 2003 01:58:27 -0400 (EDT) Original-Received: from eliop.es ([195.235.90.220]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HI000D5Y393KF@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 14 Jul 2003 01:58:17 -0400 (EDT) Original-Received: from Spooler by eliop.es (Mercury/32 v3.21c) ID MO0006E8; Mon, 14 Jul 2003 08:02:39 +0200 Original-Received: from spooler by eliop.es (Mercury/32 v3.21c); Mon, 14 Jul 2003 08:02:17 +0200 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Pegasus Mail for Windows (v4.02a) Content-description: Mail message body Priority: normal Xref: main.gmane.org gmane.os.tru64.managers:4830 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4830 Hello managers. I received a new mail from Martin Moore relating to this issue. It is not completely true that pre V5.0 versions do not comply POSIX.1 standard. The difference between preV5.0 and postV5.0 is the sign orientation of the /etc/zoneinfo/GMT* time zone data files. This is the complete mail I received. I hope this helps. > Carlos, > > I wanted to follow up my original response with some clarifying > information (that I wasn't previously aware of either). I think you > have most of this from Tom Peterson, but just in case, here it is: > > I originally wrote: > > > Tru64 UNIX V5.0 (and later) comply with the POSIX.1 standard > > (ISO/IEC 9945-1 ANSI/IEEE Std. 1003.1), but earlier versions > > do not > > Not true. Pre-V5.0 systems complied with POSIX.1 just fine. > That is, the POSIX-defined format for TZ environment variable > settings works the same on all Tru64 revs. ie: export TZ="GMT-3" > yields the same results on pre-V5.0 and post-V5.0 systems. It's the > implementation-defined format (the one with the leading ':') that's > different (ie: export TZ=":GMT-3"). This TZ format is not defined by > the POSIX standard, but is allowed as an implementation defined > extension. The ':' format TZ references /etc/zoneinfo/ time zone data > files, which did change between V4.* & V5.0, instead of just > interpreting the TZ string, as is done with the POSIX format. > > In short, it's the sign orientation of the /etc/zoneinfo/GMT* > time zone data files that changed, which has nothing to do with > official POSIX compliance on Tru64, but was done to make these > non-POSIX data file names "consistent" with the POSIX TZ strings > of the same name. It was done so the following would yield the > same results: > > implementation-defined format referencing time zone data files: > $ export TZ=":GMT-3" > > standard POSIX format that hasn't changed: > $ export TZ="GMT-3" > > But it wasn't a standards-compliancy issue. > > Similarly, regarding this statement: > > > So, GMT+1 in Tru64UNIX V4.0 is equal to GMT-1 in Tru64UNIX V5.0 (and > > later). > > This could be a little misleading unless it's qualified. > This statement only applies to the /etc/zoneinfo/GMT* time zone > data files, not standard POSIX TZ strings, which are unchanged. > > Regards, > Martin Moore Summarizing: I tested what Martin Moore wrote and this is what I have got: Doing this: # export TZ=GMT+1 # date I have got the same results in 4.0F and 5.1A. In this case, GMT-1 is what I have got (as POSIX.1 defines). But doing this: # export TZ=:GMT+1 # date Here is the difference. In 4.0F I have got GMT+1, but in 5.1A I have got GMT-1, as POSIX.1 defines. So that is the really difference working with dates between preV5.0 and postV5.0. This is related with /etc/zoneinfo/GMT* files, which are the files I use to link to the /etc/zoneinfo/localtime file. Thanks to all.