[comp.lang.asm370] TOD clock and the year 2043

FISHER@RPIECS.BITNET ("John S. Fisher") (12/20/89)

>Does anyone have a set of Assembler routines that convert from a
>TOD clock value to a date and time?

It is probably overkill for your application, but I'm sending you an assembler
subroutine for date/time formatting.  (It breaks at 2043 and I don't care :-)
You give it a text string argument like

Good <part>, it is <hh,z>:<mm> <am> on <day>, <Month> <dd,z><th>, <year>.

and it returns something like

Good afternoon, it is 1:13 pm on Tuesday, December 19th, 1989.

Most of the subroutine's code deals with fracturing the TOD clock value.


/JSFisher