From owner-freebsd-questions Wed Jul 19 10:06:03 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id KAA01317 for questions-outgoing; Wed, 19 Jul 1995 10:06:03 -0700 Received: from merde.dis.org ([204.188.108.2]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id KAA01309 for ; Wed, 19 Jul 1995 10:05:57 -0700 Received: from merde.dis.org (localhost [127.0.0.1]) by merde.dis.org (8.6.11/8.6.11) with ESMTP id KAA04160 for ; Wed, 19 Jul 1995 10:05:12 -0700 Message-Id: <199507191705.KAA04160@merde.dis.org> To: questions@FreeBSD.org Subject: time zone discrepancy X-Phone: (510) 849-2230 X-Snail-address: 2560 Bancroft way #51;Berkeley CA 94704-1700 X-Geek: GCS d--(-), p, c+++, l-, u+, e+, m* s++/+, n- h++ f+ g+ w+ t+ r y++ MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4155.806173510.1@merde.dis.org> Date: Wed, 19 Jul 1995 10:05:10 -0700 From: Pete Shipley Sender: questions-owner@FreeBSD.org Precedence: bulk I was writing some time zone calculations and noticed a discrepancy in the way SunOS and FreeBSD handles timezone information: on Sunos the command: env TZ=GMT date ; env TZ=GMT+1 date ; env TZ=GMT-1 date Sunos gives the result: Wed Jul 19 03:07:27 GMT 1995 Wed Jul 19 04:07:28 GMT+0100 1995 Wed Jul 19 02:07:28 GMT-0100 1995 i Freebsd gives the result: Wed Jul 19 03:07:57 1995 Wed Jul 19 02:07:58 GMT 1995 Wed Jul 19 04:07:58 GMT 1995 given GMT is 03:07 then zone GMT+1 should be 04:07 not 02:07. is there any reason that GMT+1 is earlier then GMT Here in Berkeley California we are -0700 hours from GMT thus the command date ; env TZ=GMT-7 date SunOS gives the result of Tue Jul 18 20:26:26 PDT 1995 Tue Jul 18 20:26:26 GMT-0700 1995 and under freebsd I get: Tue Jul 18 20:22:45 PDT 1995 Wed Jul 19 10:22:45 GMT 1995 the command "date -u " results in: Wed Jul 19 03:23:21 GMT 1995 and 03:23:21 minus 7 hours is 20:23 which agrees with my Sun Sparc my VCR. -Pete