I thought the correct time was 0:00:00 hours for midnight and not
24:00:00. But I could be wrong, and I would be corrected.
Thanks,
Jeff Davis
Dental Network of America
"Ala, Michael" <michael.ala@xxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
09/02/2008 09:15 AM
Please respond to
"RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
To
rpg400-l@xxxxxxxxxxxx
cc
Subject
Issue with %Hours
Is there a bug in IBM's + %Hours Built in function when adding 0 Hours
to 240000 The Clock rolls to Zero
Where Cutoff = 240000 and BU_Offset = '000'
D Cutoff S T INZ
D BU_Offset 16 17A
Cutoff = Cutoff + %Hours(%int(BU_Offset));
When I run this with Cutoff = 230000 result is 230000
Thanks
Mike
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 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.