On Thu, 14 Mar 2013 11:38:02 -0500, Mark Zelden wrote:

>If you do it in REXX, as already mentioned, the DATE builtin function can 
>convert 
>between most formats (not all).   It's has that ability since OS/390 2.4.   If 
>you
>don't like that you can use the RDATE or RDATEF (called as a function)
>from my web site or CBT file 434. 
>
>It has it's own "base date" based on 1/1/1900 that I use in programs
>for subtracting or adding days. 
>
>http://www.mzelden.com/mvsfiles/rdate.txt
> 
A more interesting (but perhaps less useful) problem is to find the
date and time 12 hours ago.  It could still be done in Rexx --
convert everything to seconds; add the offset in seconds;
convert back with congruence arithmetic.  It's a delightful
feature of Rexx that its congruence operators don't demand
integer operands.

Ah, if only Rexx were timezone savvy.

What's one month before March 31?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to