Date: Wed, 19 Jul 1995 10:05:10 -0700 From: Pete Shipley <shipley@dis.org> To: questions@FreeBSD.org Subject: time zone discrepancy Message-ID: <199507191705.KAA04160@merde.dis.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507191705.KAA04160>
