× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Typo error
Hi Jerry
you don't mention how Cur_Time & Last_Time are defined.
By any chance are they time formats, and therefore may contain micro
seconds, with the difference between the being something like 59 minutes
59.999 seconds. In which case, its doing things correctly
Just a wild stab


Alan Shore

NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx
"If you're going through Hell, keep going" - Winston Churchill
rpg400-l-bounces@xxxxxxxxxxxx wrote on 01/16/2008 02:03:46 PM:

Hi Jerry
you don't mention how Cur_Time & Last_Time are defined.
By any chance are they time formats, and therefore may contain micro
seconds, with the difference between the being something like 59 minutes
50.999 seconds. In which case, its doing things correctly
Just a wild stab



Alan Shore

NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx
"If you're going through Hell, keep going" - Winston Churchill


rpg400-l-bounces@xxxxxxxxxxxx wrote on 01/16/2008 01:43:38 PM:

The infocenter states the following for %Diff:

"The result is rounded down, with any remainder discarded. For example,
61
minutes is equal to 1 hour, and 59 minutes is equal to 0 hours."

I have the following statement in a program where cur_time is 12:38:15
and
last_time is 11:38:15.


C IF %Diff(Cur_Time:Last_Time:*Minutes)


60

Using the interpretation from the infocenter cited above, does that
mean
that the %Diff would be 1 *Hour instead of 60 *Minutes?

The reason I ask is that for some reason the code that should execute
never does and therefore there must be something wrong with that
condition
as coded (and I don't know how to or if I can view the value of %Diff).
Could it be that the compiler is rounding up to 1 hour and therefore
minutes is never greater than 60? Or (in other words) is >60 a valid
value
for use with *Minutes?

Comments?


Regards, Jerry

Gerald Kern - MIS Project Leader
Lotus Notes/Domino Administrator
IBM Certified RPG IV Developer
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623-4299
Phone 419-479-5535
gkern@xxxxxxxxxxxxxxxx


This e-mail message, including any attachments, is for the sole use of
the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please inform the
sender by reply e-mail and destroy this and all copies of this message.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.