At one time there was a date calculation routine for REXX floating around. Sorry, don't remember the name.
Frank M. Ramaekers Jr. Systems Programmer MCP, MCP+I, MCSE & RHCE American Income Life Insurance Co. Phone: (254)761-6649 1200 Wooded Acres Dr. Fax: (254)741-5777 Waco, Texas 76701 ________________________________ From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Horlick, Michael Sent: Thursday, September 24, 2009 10:10 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Date/Time functions for REXX program? Greetings, Would like a few suggestions for a small REXX program I'm writing. I would like to determine the date and time since a user is logged on. I can do a 'CP IND USER userid EXP' and get the CTIME as the number of days, hours, minutes and seconds that user is logged on, which is good, but I would like to determine the actual day, hour, minute and second. For example, right now my EXEC displays the following: xxxxxxx has been logged on for 1 day(s) 7 hour(s) 1 minute(s) 1 second(s). If it is, say 11:30:00 AM right now, I would like it to say additionally 'since Wednesday, September 22 at 4:28:59AM'. Gets a bit complicated, I guess, for year changes, leap years, etc... Also, I would like to determine the amount of time between the current time and a date in the future (our next scheduled VSE IPL, for example) I plan to do the same for the VM IPL time derived from the 'CP Q CPLEVEL' command. Any suggestions would be appreciated. Thanks, Mike _____________________________________________________ This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at privacy...@ailife.com.