According to the documentation for TECO v40:
^B <CTRL/B> (caret/B) is equivalent to the current date
via the following equations:
OS/8: ^B = (((month*32)+day)*8)+((year-1970)&7)+k
where k = 4096 if year>1977
and k=0 otherwise
RT-11: ^B = (((month*32)+day)*32)+year-1972
RSTS/E: ^B = ((year-1970)*1000)+day within year
RSX-11: ^B = ((year-1900)*16+month)*32+day
VAX/VMS: ^B = ((year-1900)*16+month)*32+day
TOPS-10: ^B = (((year-1964)*12+month-1)*31+day-1)
Notice how the year is added as the least significant bits for OS/8
and RT-11.
For OS/8, you only get *3* bits for the year plus a high 4K bit set if
the year is out of range? Does this mean years higher than 1977 are
encoded as 4096+(year-1977)?
For RT-11, notice how year-1972 is packed into *5* bits (0..31), so
years after 1972+31=2003 start carrying over into the bits for the month
and day.
Can anyone with RT-11 or OS/8 and TECO v40 verify what is described above?
--
"The Direct3D Graphics Pipeline" free book
<http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>