Steve Comstock wrote: >If you're coding in C, Assembler, COBOL, or PL/I, you can use the Language >Environment date functions, which can do what you want pretty simply.
It is pretty easy indeed. I have done that in REXX and COBOL to test out date/time functions before and after we converted to use both Local and Greenwich Time Zone for time control compatibility with other machines. For Assembler, I just used TIME ....,ZONE=LT or UTZ. > call CEELOCT to get today's date in Lilian format > subtract 1 > call CEEDATE to convert to a formatted date in a wide > variety of options >this does account for leap years and such. Indeed, otherwise you will see an APAR pretty quick. ;-) >It's not a shell command, but you could write a very short program that >returns the output from the CEEDATE call and then just invoke the program from >a shell script. Excellent approach for the OP to consider. Groete / Greetings Elardus Engelbrecht ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
