www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/11/03:06:46

Date: Thu, 11 Jan 2001 10:05:03 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Joe Wright <joewwright AT earthlink DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: It's about time()
In-Reply-To: <3A5D0A33.1182@earthlink.net>
Message-ID: <Pine.SUN.3.91.1010111100446.15305L-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019