On 28 Oct 2006 11:04:57 -0700, in bit.listserv.ibm-main
(Message-ID:<[EMAIL PROTECTED]>)
[EMAIL PROTECTED] (Paul Gilmartin) wrote:
On Sat, 28 Oct 2006 19:17:24 +0200, Thomas Berg
<[EMAIL PROTECTED]> wrote:
>
> Say 'Rexx Date/Time:' DATE(U) TIME()
There is still a small(er) chance that the date changes
between the
resolution of the Date() function and the resolution of
the Time()
function. (AFAIK)
Your doubt is well-founded. There is no chance whatever.
Haven't found a really "clean" solution to this
problem. Anyone ?
See above. The tedious part is if you wish to separate
the date and
time while guaranteeing conssistency. Something like:
parse value DATE(U) TIME() with <left as exercise for
the student.>
If DATE("T") is available, it takes care of the
problem. E.g.:
<source>
t0 = date("T")
tdate = date(<choose your format>,t0,"T")
ttime = time(<choose your format>,t0,"T")
</source>
--
I cannot receive mail at the address this was sent from.
To reply directly, send to ar23hur "at" intergate "dot" com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html