> Now the big question ... how useful is "TIME MIC" ?

Useful for time differences: "How long did that take?*" Not so useful for time 
of day.

Not sure more useful than STCK, unless you have an aversion to shifting or 
dividing by 4096.

*Assuming it did not cross a midnight** boundary. (I guess if difference is 
negative, add 86400*10^6. Repeat until not negative.)

**Midnight somewhere.

Happy Friday.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of DanD
Sent: Friday, October 20, 2017 4:04 PM
To: [email protected]
Subject: Re: Time Mic conversion

Thanks everyone.

I also thought that shifting 12 bits to the right was required, but it isn't.

I used the 8 byte output from "TIME MIC" as input to "STCKCONV ... 
TIMETYPE=BIN".
The output is a "TIME BIN" doubleword with the 2nd word (date) zeros.
Paul was correct ... time of day since midnight where?  or when ... last week? 

For my test case I issued "TIME BIN" and saved TODAYs date as the 2nd word....

"TIME BIN" creates 00682B6E0117293F which converts to 18:57:48.62 2017/293 
"TIME MIC" creates 0000FE94478AEBC0 which STCKCONV changes to 0068469000000000 
/ 006846900117293F after today's date inserted.  This is identical to the 
"TIME BIN" output and generates the same character time value.

Now the big question ... how useful is "TIME MIC" ?  :-)

DanD

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

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

Reply via email to