Thread View: net.bugs
1 messages
1 total messages
Started by Sanford L. Barr at Brookhaven Na...
Mon, 04 Feb 1985 23:03
UNIX in the Year 2037
Author: Sanford L. Barr at Brookhaven Na...
Date: Mon, 04 Feb 1985 23:03
Date: Mon, 04 Feb 1985 23:03
41 lines
1482 bytes
1482 bytes
According to the little blurb of a program someone
wrote on this newsgroup a week or so ago. Our PDP-11/44
running V7 will get up to the year 2037 and then revert
back to 1901. Has anyone else found some other neat
symptoms on their systems?
San
Copy of unix time tester follows:
(Type positive or negative integer depending upon how far forward
or backward you wish to go.)
-----CUT HERE----- -----CUT HERE-----
#include <stdio.h>
#include <time.h>
#define YEAR 31536000 /* only roughly, but who cares */
main()
{
long time(), clock;
float increment;
char * ctime();
time(&clock);
fputs(ctime(&clock), stdout);
while (scanf("%f", &increment) > 0) {
clock += (long) (increment * YEAR);
fputs(ctime(&clock), stdout);
}
}
--
Sanford L. Barr
Famous designer of the Write Only Memory.
-- --
..!decvax!philabs!sbcs!bnl!slb
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads