Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site bnl.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!mcnc!philabs!sbcs!bnl!slb
From: slb@bnl.UUCP (Sanford L. Barr at Brookhaven National Labs, L.I.)
Newsgroups: net.bugs
Subject: UNIX in the Year 2037
Message-ID: <869@bnl.UUCP>
Date: Mon, 4-Feb-85 18:03:16 EST
Article-I.D.: bnl.869
Posted: Mon Feb  4 18:03:16 1985
Date-Received: Sun, 10-Feb-85 03:47:57 EST
Distribution: net
Lines: 41


	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 
#include 
#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