On 11/19/2017 9:45 AM, Charles Mills wrote:
Subtract?
Sort of. My impression -- and I would be happy if someone could definitively
confirm or correct me -- is that leap seconds are of course subtracted from
the TOD value, but the value in CVTLSO is negative, so adding CVTLSO
subtracts the leap second count. On the test LPAR that I am currently
looking at CVTLSO is zero, so that's not much of a clue.
http://www.longpelaexpertise.com/toolsTOD.php supports my thinking.
We do this in (E)JES:
* Convert Local TOD (Passed in R1) to GMT
Cnvt_LclTod_to_GmtTod DC 0H
LLGT R15,FLCCVT Point to CVT
USING CVTMAP,R15 <Synchronize CVT
LLGT R15,CVTEXT2 Point to OS/VS2 common extension
USING CVTXTNT2,R15 <Synchronize CVTXTNT2
ALG R1,CVTLSO Add leap seconds adjustment
SLG R1,CVTLDTO Adjust to GMT from local time
DROP R15 <Drop CVT/CVTXTNT2
BR R14 Return GMT TOD value
--
Phoenix Software International
Edward E. Jaffe
831 Parkview Drive North
El Segundo, CA 90245
http://www.phoenixsoftware.com/