🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #148

Re: Hard coded dates (was Re: FORTRAN Greetings

#148
From: exs... P E Smee
Date: Thu, 04 Jan 1990 11:42
23 lines
1851 bytes
OS/8 (on DEC PDP-8's) had generously allocated an entire 3 (THREE,
count 'em, 3)bits for the year field in filesystem dates.  (In minor
defense, they only had 12-bit words, and needed 9 bits to hold
day-of-year.  Still, sounds like they didn't expect the OS to be
popular or long-lived.)

Originally, the 'base' year was 1960.  Late in 1967, someone finally
realized that something would have to be done about this.  The approach
they took was to use a sliding base year.  So, in encoding an ASCII
date into a filesystem date, the algorithm was (YEAR-1960) mod 8.  In
turning a filesystem date back to an ASCII date, it would pick the most
recent past year which would have given the encoding.  So, in 1968,
everything that had been lying around unchanged since 1960 suddenly
looked brand new.

If I recall correctly, they did NOT take the current day-of-year into
account when converting the year code back to readable form, so that
you could also find files which appeared to have been (have will been?)
created in the future -- that is, at a later date in the current year.

-- 
Paul Smee, Univ of Bristol Comp Centre, Bristol BS8 1TW, Tel +44 272 303132
 Sm...@bristol.ac.uk  :-)  (..!uunet!ukc!gdr.bath.ac.uk!exspes if you MUST)
Technical Details
Message-ID: <1990Jan4.114246.20633@gdt.bath.ac.uk>
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!ukc!dcl-cs!gdt!gdr!exspes
References: <1977@dover.sps.mot.com> <4375@amelia.nas.nasa.gov> <1887@bucket.UUCP>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!ukc!dcl-cs!gdt!gdr!exspes
From: exs...@gdr.bath.ac.uk (P E Smee)
Newsgroups: alt.folklore.computers
Subject: Re: Hard coded dates (was Re: FORTRAN Greetings
Message-ID: <1990Jan4.114246.20633@gdt.bath.ac.uk>
Date: 4 Jan 90 11:42:46 GMT
References: <1977@dover.sps.mot.com> <4375@amelia.nas.nasa.gov> <1887@bucket.UUCP>
Reply-To: exs...@gdr.bath.ac.uk (P E Smee)
Organization: University of Bristol c/o University of Bath
Lines: 23
Posted: Thu Jan  4 12:42:46 1990
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit