On Tue, 23 Sep 2008 01:20:33 -0500, Roland Schiradin <[EMAIL PROTECTED]> wrote:
>Tony,
>
>this is what I did in SHOWzOS
>
<SNIP> Affine transformation </SNIP>
>
Ummm. UTC? GMT? Local civil time? Daylight Saving Time?
Leap Seconds?
>>(Tourist info -> http://en.wikipedia.org/wiki/System_time )
>>
>>My question is:-
>>How do I create a human readable date / time value in an assembler program
>>from the unix 'time' value. ?
>>
>>I started thinking about converting seconds to microseconds, removing the
>>70 years and then using STCKCONV,
>>Then I thought about a whole bunch of divide instructions.
>>Then I thought, someone must do this. There has to be an easier way.
>
strftime() (I don't know assembler interface) does this more or less
correctly. Less correctly on z/OS Unix; more correctly on most other
UNIX implementations.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html