[ntp:questions] Re: thanks Martin Burnicki (NTP Problem continues)

Joachim Schrod jschrod at acm.org
Wed May 10 17:16:59 UTC 2006

Marvin Garcia wrote:
> Please see the lines bellow,
> root at snbntp0201 # echo $TZ
> GMT-4
> root at snbntp0201 # date; date -u
> Wed May 10 19:35:04 GMT 2006
> Wed May 10 15:35:04 GMT 2006
> What i mean is that instead of subtract 4 it sum 4 to the GMT ... Do
> you see the diferences?
> I think this is ilogical or am i doing something wrong? 

AFAICS, that's the way it's defined. See at the end of 
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html the 
explanation of TZ:

The offset is "the value added to the local time to arrive at Coordinated 
Universal Time." That's also supported by "If preceded by a '-', the timezone 
shall be east of the Prime Meridian" in that standard. That this is not the way 
it's expressed on http://wwp.greenwichmeantime.com/ is an other issue. :-) Maybe 
you find more explanations on that site.


Joachim Schrod				Email: jschrod at acm.org
Roedermark, Germany

More information about the questions mailing list