Mail Archives: djgpp/1994/03/15/19:59:42
From: Eric Backus <ericb AT lsid DOT hp DOT com>
Message-Id: <9403151828 DOT AA07567 AT labejb DOT lsid DOT hp DOT com>
Subject: Re: DJGPP FAQ collection [was: DJGPP Memory Org. Docs?]
To: peter AT deakin DOT edu DOT au
Date: Tue, 15 Mar 94 10:28:10 PST
Cc: turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp,
djgpp AT sun DOT soe DOT clarkson DOT edu
In-Reply-To: <199403150607 DOT QAA03344 AT sol DOT ccs DOT deakin DOT edu DOT au>;
from "Peter Horan" at Mar 15, 94 4:07 pm
Mailer: Elm [revision: 70.85]
> I do not know if this is an FAQ but it is obscure enough given the lack of
> documentation on TZ in djgpp. I found this answer elsewhere
(Borland C or SCO
> Xenix).
>
> Q. Using ctime() returns a crazy time. Why?
> A. Set TZ in the environment to "EST0EDT".
>
> Q. Why does EST10EDT not work as expected?
> A. The clock is not set to GMT.
Possible alternate answer: Eastern Standard Time is only five hours
away from GMT, so you should try EST5EDT?
Thank you for your mail. I see one piece of confusion: _Australian_ Eastern
Standard Time is also abbreviated EST in Unix.
So, my TZ string should be EST-10EDT at least. This also prints out the
wrong time.
Peter Horan School of Computing and Mathematics
peter AT deakin DOT edu DOT au Deakin University
Geelong
+61-52-27 1234 (Voice) Victoria 3217
+61-52-27 2028 (FAX) Australia
- Raw text -