Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating time
Message
From
15/01/2002 18:18:06
 
 
To
15/01/2002 17:45:59
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00605111
Message ID:
00605152
Views:
13
Craig -- Thanks for the assist!

>Use CTOT() then subtract. It will give you number of seconds. Rather than using TIME(), it may be easier to use DATETIME().
>
>t1=DATETIME()
>t2=DATETIME()
>
>* Process
>
>? t2-t1 && Number of seconds.
>
>>What's the best way to calculate the interval?
>>E.g.
>>t1=Time()
>>...as time goes by.....
>>t2 = Time()
>>
>>?t2-t1 && of course does not work because t1, t2 are strings
>>
>>Is there a way of computing "t2-t2" without resorting to low level code?
>>(I don't have Hacker's with me today)
>>
>>Thanks,
>>Pete
Pete Donahoe
Once a programmer, always a programmer!
Previous
Reply
Map
View

Click here to load this message in the networking platform