On Tue, Apr 10, 2007 at 06:17:58PM -0400, Nick ! wrote:
> On 4/10/07, Markus Bergkvist <[EMAIL PROTECTED]> wrote:
> >Hi,
> >
> >'date -u' on a 4.0 -stable will give something like
> >Tue Apr 10 22:03:24 GMT 2007
> >but shouldn't it be
> >Tue Apr 10 22:03:24 UTC 2007
>
> UTC = GMT for all that we care about.
> [[http://en.wikipedia.org/wiki/Coordinated_Universal_Time]]
i could be wrong here, but perhaps he is not suggesting
that there is any wallclock difference between GMT and UTC,
but rather that the manpage for date(1) says:
---
-u Display or set the date in UTC (Coordinated Universal) time.
---
as opposed to "... date in GMT ...", also as implied by how it is
'-u' and not '-g'
least, that was my reaction to his post?
--
jared
Index: date.c
===================================================================
RCS file: /cvs/src/bin/date/date.c,v
retrieving revision 1.27
diff -u -u -r1.27 date.c
--- date.c 29 Nov 2005 19:07:46 -0000 1.27
+++ date.c 11 Apr 2007 03:19:15 -0000
@@ -102,7 +102,7 @@
tval = atol(optarg);
break;
case 'u': /* do everything in UTC */
- if (setenv("TZ", "GMT0", 1) == -1)
+ if (setenv("TZ", "UTC", 1) == -1)
err(1, "cannot unsetenv TZ");
break;
case 't': /* minutes west of GMT */