On 17 Jun 1999 19:31:01 EDT, Raymond Toy <toy(a)rtp.ericsson.se> said:
My solaris 2.5.1 machine says
Death at Mon Jan 18 22:14:07 2038
Afterlife at Mon Jan 18 23:14:08 2038
Ditto for AIX 4.3.2.
However, remember that Steve is in a different timezone,
and there's a boundary condition here.
[~]1 TZ=EST5EDT ./a.out
Death at Mon Jan 18 22:14:07 2038
Afterlife at Mon Jan 18 22:14:08 2038
[~]1 TZ=EST1EDT ./a.out
Death at Tue Jan 19 02:14:07 2038
Afterlife at Tue Jan 19 02:14:08 2038
[~]1 TZ=EST0EDT ./a.out
Death at Tue Jan 19 03:14:07 2038
Afterlife at Fri Dec 13 20:45:52 1901
Steve is at +0900, EDT is -0400. So where Steve is,
the timezone causes an overflow in ctime, but where
I and Raymond are, subtracting off the 4 hour offset gives just
enough headroom that ctime doesn't overflow.
/Valdis