X'7A120000' is (4096 * 1000000) / 2.

The comment is backwards or inverted: should say TOD units per second (divided 
by 2).

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Tony Harminc
Sent: Thursday, July 20, 2017 1:10 PM
To: [email protected]
Subject: Re: Curious about IBM time conversion example program

On 20 July 2017 at 13:11, Kirk Wolf <[email protected]> wrote:

> I'm actually writing this in Java (to 64-bit java "long" epoch 
> seconds, from both STCK and STCKE inputs), but the sample IBM 
> assembler code initially puzzled me.

I must admit I remain confused by both the sample code and its comments.
The the notion of "seconds per tod unit" is an odd one. This is a very small 
number (about 0.000000000244140625), and it makes little sense to be dividing 
anything by it. And certainly the constant EPOCST DC X'7A120000'
isn't it.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to