From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3119db64b37647be X-Google-Attributes: gid1164f8,public X-Google-Thread: fdd80,331e971399ed6cac X-Google-Attributes: gidfdd80,public X-Google-Thread: 1018e7,331e971399ed6cac X-Google-Attributes: gid1018e7,public X-Google-Thread: ffc31,331e971399ed6cac X-Google-Attributes: gidffc31,public From: Stuart Brook Subject: Re: Pretty stupid request regarding Y2K and PDP 11/23 Date: 1998/02/28 Message-ID: <34F8820B.62CA@concentric.net>#1/1 X-Deja-AN: 329536830 Content-Transfer-Encoding: 7bit References: <6d6q7t$eh4$1@nntp.ucs.ubc.ca> Mime-Version: 1.0 Reply-To: sbrook@concentric.net Distribution: inet Content-Type: text/plain; charset=us-ascii Organization: Concentric Internet Services Newsgroups: comp.sys.dec,comp.os.rsts,vmsnet.pdp-11,alt.sys.pdp11 John A Santos wrote: > > RSTS/E (at least V10.1, but I suspect this goes back forever) won't > roll the date over correctly at end-of-year for more than one year > after the boot date. To test Y2K stuff, you need to reboot and set the > date at boot time to 01-Jan-1999 or later. > > I have a theory as to why this is the case, but haven't been able to > ... > > RSTS/E internal date format is an unsigned word whose value is > (YYYY-1970)*1000+DOY, where YYYY is the year and DOY is the day > of the year. For example, 31-DEC-1997 is 27365, and 01-Jan-1998 > is 28001. > > My theory is there is a word, computed at boot-time, containing the > RSTS/E format date of the last day of the year (or maybe the last day+1, > i.e. "32-DEC" or 27366 for systems booted in 1997), and at midnight on > 31-DEC, when the clock service interrupt increments the date word, it > compares the date to this word, and if they are the same, it resets the > date to 01-JAN-YY+1. This method would save a fair amount of code in the > clock service to check every night at midnight if this is 31-DEC > (including handling leap year). The cost of this method is that end-of- > year won't work right if the system is up for more than a year (the > longest uptime I've ever seen on a RSTS/E system was about 9 months), or > if you set the date to after 31-DEC of the boot year (or before 01-JAN of > the boot year.) Apparently the SET-TIME sys() call doesn't update this > word. John, you are as close as Damn It! is to swearing! > There were no real problems after this date with system code, and most > user programs were also fine as long as they treated DATE values as > unsigned words. This means you are OK until 31-DEC-2035. That's correct! I know RSTS dies before the other 2 major PDP o/s but I could never remember the magic date. Given that most of us who've worked with -11's will be well into retirement by that time, our jump up and down worry is not too evident ... I hope RSTS users in 2035 will remember that! Stuart