Hello,

Thanks for all the answers, and especially to Peter Relson
from the z/OS Core Technology Design.

We implemented his tip of :
UtcTime = StckTimeStamp - CVTLSO
LocalTime = StckTimeStamp + CVTLDTO - CVTLSO

and we got our solution !

Cwi Jeret - Bank Hapoalim  T.A.

------------------------------------------
From:         Peter Relson <[EMAIL PROTECTED]>
Subject:      Re: Converting TOD to Local Time
Content-type: text/plain; charset=US-ASCII
A STCK value, as Bob Wright mentioned, is considered "absolute time".
Absolute to UTC: apply leap seconds
Absolute to Local: apply leap seconds and time zone offset

UtcTime = StckTimeStamp - CVTLSO
LocalTime = StckTimeStamp + CVTLDTO - CVTLSO

Assuming addressability to the CVT, and assuming z/Architecture,
LG    R1,StckTimeStamp
ALG   R1,CVTLDTO
SLG   R1,CVTLSO
STG   R1,LocalTime

Without z/Architecture, 8-byte arithmetic can be accomplished using
register pairs, accounting for carry and borrow.

Peter Relson
z/OS Core Technology Design

----------------------------------------------------------------------
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

Reply via email to