Date: Thu, 11 Jan 2001 10:05:03 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Joe Wright cc: djgpp AT delorie DOT com Subject: Re: It's about time() In-Reply-To: <3A5D0A33.1182@earthlink.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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).