Should this be a topic for SHARE ? A Share presentation discussing time/date manipulation STCK, STCKE, CONVTOD, etc. ?
---------- Original Message ---------- From: Paul Gilmartin <[email protected]> To: [email protected] Subject: Re: CONVTOD Help Date: Tue, 11 Apr 2017 16:22:52 -0600 On 2017-04-11, at 15:48, Farley, Peter x23353 wrote: > A shorter approach would be to use the actual 1970-01-01 00:00:00 epoch date > in STCKE format: > > X'007D91048BCA0000' > > Subtract that value from the first 64 bits of STCKE and then divide by > F'1600000' to get seconds since the Unix epoch. > > Of note, a recent Metal C compile of that algorithm with ARCH(10) TUNE(10) > generates an add of the negative of the Unix epoch value to the STCKE value > and then divides by =F'1600000' (DSGF) to get the seconds value. > Do I see one zero too few somewhere? -- gil
