Mail Archives: djgpp/2001/01/11/03:06:46
On Thu, 11 Jan 2001, Joe Wright wrote:
> Is there some setup thing such that localtime() reports the system
> clock, tm_zone is "EST" and gmtime() is five hours later?
For this to work, you need to set the TZ environment variable as
appropriate for your geographical location. For "EST", the proper
setting would be "set TZ=EST5EDT", or "set TZ=US/Eastern".
You need djtznNNN.zip to be installed for that. It also includes many
more US-related files, such as America/Chicago etc. Choose the
closest to your location.
(This is in the FAQ, btw: see section 22.20, assuming you have the
latest FAQ v2.30).
- Raw text -