Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating time
Message
From
15/01/2002 17:45:59
 
 
To
15/01/2002 17:26:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00605111
Message ID:
00605139
Views:
14
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
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform