hey Bill,
I was trying that in the begginning, and it wouldnt work, maybe I was declaring the VAR wrong, but it works like a charm now. Thanks
From: "Bill Downall" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Subject: Re: Date and Time Date: Thu, 17 Oct 2002 12:08:44 -0500Steve, Just subtract the earlier one from the later one. The result is an integer. SET VAR vLapsedSeconds INT = (.vDateTime2 - .vDateTime1) If your time format is set to HH:MM or HH:MM:SS, then the result is already in seconds. If your time format is set to HH:MM:SS.sss, then the result is in thousandths of a second. Divide by 1000 to get seconds. Bill On Thu, 17 Oct 2002 12:46:21 -0400, Steve Durham wrote: >What would be the best way to find the difference between two DATETIME >variables in Rbase 6.5++? >I need to be able to take the difference of those two variables and break >the difference down to a total of seconds. >I have a few ideas, but I am sure someone knows an easier way to do this. ================================================ 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/
_________________________________________________________________
Get faster connections�-- switch to�MSN Internet Access! http://resourcecenter.msn.com/access/plans/default.asp
================================================
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/
