January 1, 1970 00:00:00 GMT -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Paul Gilmartin Sent: Monday, April 10, 2017 10:57 AM To: [email protected] Subject: Re: CONVTOD Help
On 2017-04-10, at 09:38, Ward, Mike S wrote: > Hello, list friends. I was wondering if one of you could give me a little > help with a time problem that I have not been able to solve. I have the need > to provide the number of seconds since 1970 for a project that I'm working > on. I have been using a combination of the STCK and the CONVTOD to try and > get the results, but I'm just not that good at math or time functions. If > someone could steer me in the right direction I would really appreciate it. > Any particular date in 1970? STCK (Doesn't sound as if you need STCKE.) (Adjust with CVTLSO as desired.) 64-bit subtract 1970 value from STCK value. (Overflow likely; use SL) Divide by 4096. Divide by 1000000. (z/OS UNIX time() function gives this directly.) -- gil ========================== This email, and any files transmitted with it, is confidential and intended solely for the use of the individual or entity to which it is addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message by mistake and delete this e-mail from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
