Mail Archives: djgpp/1998/04/06/02:24:43
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.
- Raw text -