[ntp:questions] Kind of OT : GMT timezones in linux

James Cloos cloos at jhcloos.com
Sat Jul 7 04:32:27 UTC 2007

>>>>> "Per" == Per Hedeland <per at hedeland.org> writes:

Per> And besides the invaluable geographical-region-based zone files, it
Per> comes with a directory full of GMT+/-N files - but using them gives a
Per> different result:

Per> $ env TZ=Etc/GMT-2 date
Per> Wed Jun 27 21:49:52 GMT-2 2007

Technically speaking, the TZ variable requires a leading colon when
specifying a file.  So the above example has to be:

:; env TZ=:Etc/GMT-2 date
Sat Jul  7 06:29:14 GMT-2 2007

Many libs try looking for a file even without the leading colon, but
that is not part of the standard.

Cf: tzset(3), such as at:


James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6

More information about the questions mailing list