At 02:31 PM 10/17/2002 -0400, you wrote:
Dear Mike

SET VAR vElapsed = (RTIME(0,0,.v3)) will return the
erroneous result 1:0:0. It is erroneous because it suggests
that only one hour has elapsed even though for the second
and third instances, the elapsed time should be 25:0:0 and
49:0:0 respectively.
Dear Randy;

Expanding on my last post, RTIME actually does not return an
erroneous result in this demonstration because 3600 is the difference
between the two TIME values (remember, we neglected the DATE
information using the TEXTRACT function).

However, if you use Bill's example, and you plug a value like 90000
seconds (25 hours * 3600 seconds in an hour) you will see that
RTIME returns 1:0:0. The reason for this is that RTIME uses your
R:BASE TIME settings. The time in a day never goes beyond 23:59:59
so whenever you exceed 86399 seconds, RTIME returns 1:0:0. This is
expected behavior.

I hope this didn't get too confusing.

Best Regards,

Mike

================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to