Mail Archives: djgpp/2002/05/22/02:25:54
On Wed, 22 May 2002, Alex Vinokur wrote:
> Are 'mktime() implementations on different platforms' essentially different ?
The borderline cases that you concentrate on are notoriously hard to get
right, since the time-zone offset is not known until the exact local time
is computed (timezone DST rules depend on local time), but the local time
cannot be computed until you know the time-zone offset...
> Similar program on SunOS 5.6 with gcc 2.91.57 had no problem :
> http://groups.google.com/groups?selm=7vrrsi%24ii8%241%40nnrp1.deja.com
Alas, the sources of the Solaris library aren't freely available, so we
cannot get ideas from there.
If you are really disturbed by those border cases, look at the
implementation in djtzs203.zip, it is better than what's in libc.a.
- Raw text -