Date: Mon, 6 Apr 1998 09:20:57 +0300 (IDT) From: Eli Zaretskii To: me AT home DOT net cc: djgpp AT delorie DOT com Subject: Re: GMT Time In-Reply-To: <6g9jrk$av5@bgtnsc02.worldnet.att.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 5 Apr 1998 me AT home DOT net wrote: > Question? > > when I use the "gmt = *gmtime(&t)" function the time still comes out in > local time. You need to set the TZ variable in the environment for this to work. It should be set to the name of the country/state/area of where you live. For example, here's what I do: set TZ=israel The areas recognized by DJGPP are the files in your timezone subdirectory. Find the file whose name describes your area and set TZ to its name. After that, it should work.