Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Stuart Brook <sbrook@concentric.net>
Subject: Re: Pretty stupid request regarding Y2K and PDP 11/23
Date: 1998/02/28	[thread overview]
Message-ID: <34F8820B.62CA@concentric.net> (raw)
In-Reply-To: MPG.f619569ef480b81989695@news.ma.ultranet.com


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



  reply	other threads:[~1998-02-28  5:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-26  5:00 Pretty stupid request regarding Y2K and PDP 11/23 Dave Brettell
1998-02-27  5:00 ` Tim Shoppa
1998-02-27  5:00   ` Terry Kennedy
1998-02-28  5:00   ` John A Santos
1998-02-28  5:00     ` Stuart Brook [this message]
1998-02-27  5:00 ` Joel Gallun
1998-02-27  5:00   ` John Wilson
1998-03-01  5:00 ` Randy Park
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox