On 17 Jun 1999, Raymond Toy wrote:
>>>>> "sb" == SL Baur
<steve(a)xemacs.org> writes:
sb> [1] Speaking of which, is it a standard POSIX feature that negative
sb> times get treated as being before the epoch?
sb> $ cat /usr/tmp/bug.c
sb> main()
sb> {
sb> long int time = 0x7fffffff;
sb> long int time2 = 0x80000000;
sb> printf("Death at %s", ctime(&time));
sb> printf("Afterlife at %s", ctime(&time2));
sb> }
sb> $ /usr/tmp/bug
sb> Death at Tue Jan 19 12:14:07 2038
sb> Afterlife at Sat Dec 14 05:45:52 1901
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
That's curious. Afterlife is Death + 01:00:01. Typo?
My RedHat R4 says:
$ ./bug
Death at Mon Jan 18 22:14:07 2038
Afterlife at Fri Dec 13 15:45:52 1901
[ At GMT-4 ]
-Justin
vallon(a)mindspring.com