Also in the PoOP, the doubleword stored by STCK, when shifted right logically by 3 bytes is a binary value in microseconds. So loaded in a pair of registers and shift right double logical by 12 bits gives you a value from which you can subtract the TOD in microseconds of 1970.
Note that the STCK value for 1970 does not have the left-most bit on (using standard epoch), while a current value will. Gary Weinhold Senior Application Architect DATAKINETICS | Data Performance & Optimization Phone: +1.613.523.5500 x216<tel:+1.613.523.5500%20x216> Email: [email protected]<mailto:[email protected]> [http://www.dkl.com/wp-content/uploads/2015/07/dkl_logo.png]<http://www.dkl.com/> Visit us online at www.DKL.com<http://www.dkl.com/> [http://www.dkl.com/wp-content/uploads/2015/08/banner.png]<http://www.dkl.com/mailsig> E-mail Notification: The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system. __________ On 2017-04-10 11: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. Thanks you. ========================== 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.
