Peter Colpaert
Application Developer
PLI - IT - Kontich, Belgium
-----
Yoda of Borg are we. Futile is resistance, assimilated will you be.
-----
Joep Beckeringh <joep@xxxxxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
28/11/2007 15:08
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc
Subject
Re: 00:00:00 or 24:00:00
That makes sense, because the date part is equal. How about this:
D time1 S Z inz(z'2000-01-01-24.00.00.000000')
D time2 S Z inz(z'2000-01-02-00.00.00.000000')
D equal S N
D diff S 10I 0
/free
equal = (time1 = time2);
dsply equal;
diff = %diff(time1:time2:*MS);
dsply diff;
*inlr = *on;
/end-free
According to IBM they're not equal, but the difference in milliseconds is
0.
Joep Beckeringh
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.