Richard wrote:
OK, here's what I believe is a correct macro for
inserting the
current date and time as an HTTP Date header, portable across
different TECO environments as best I can make it. I tried to login
to the TOPS-10 machine at pdpplanet, but encountered difficulties.
Therefore, I have only tested this end-to-end on a Win32 environment
where I'm running TECOC. I started with DATE.TES in the TECOC
distribution and changed things around to try and make it as small as
possible when squished. Right now I'm at 1,109 bytes of squished
TECO. I could squeeze out 33 more bytes if I change the code that
builds up a string containing the days within a month by replacing
the 31 at I// commands with an insert using literal control characters
but I'm trying to keep my source file free of control characters, with
a small concession for ESC characters.
If others are willing to try this on their TECOs and tell me the
results, that would be great. The environments that are different
from my test environment are:
PDP-8, OS/8 Different date, time encoding
PDP-11, RT-11 Different date encoding
PDP-11, RSTS/E Different date, time encoding
TOPS-10 Different date, time encoding
TOPS-20 Different date, time encoding
<http://user.xmission.com/~legalize/vintage/http-date.zip>
[Snip]
Please verify my understanding:
Can all of the listed operating systems respond with the date AND time
except
for RT-11 which responds with only the date?
From another post within this thread, I thought that OS/8 is unable to keep
track of the time. Obviously, RT-11 keeps track of the time, but TECO for
RT-11 does not have the ability (that I am aware of) to tell the TECO user
what the time is. Can you please respond specifically if OS/8 keeps track
of the time and if TECO under OS/8 and the other 3 operating systems is
able to provide the user with the time of day?
Since I don't have any TECO manuals for any operating system except
RT-11, what command does the user send to TECO and what is the
response when the time is requested?
Finally, would it be helpful if TECO under RT-11 also provided the time
of day?
Jerome Fine