Mail Archives: djgpp/1998/11/15/06:30:40
On Thu, 12 Nov 1998, Simon Vatche Chamlian wrote:
> I was using DJGPP's "localtime" function and to my great surprise,
> "localtime" returns a time 5 hours greater then the time set on the
> PC. I presume this is due because there is no correction done due to
> the time zone and daylight saving time.
Do you have a TZ variable set in the environment? If so, it probably
is not in a form that is compatible with Posix TZ format used by
DJGPP. Post here the details of your TZ setting, if you want this
resolved.
> On another subject, the reason I was trying to tackle this function
> is because "time_t" is declared as "long" in the ANSI C
> library.
AFAIK, ANSI never specifies what time_t should be, except that it
should be an arithmetic type; it's entirely up to the implementation
to providfe whatever typedef it sees fit.
- Raw text -