Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to calculate elapsed time
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01016916
Message ID:
01119597
Views:
21
>
>t1 = DATETIME()
>*
>* wait some amount
>*
>t2 = DATETIME()
>
>nSeconds = t2 - t1
>cTime = TTOC({^2005/01/01 00:00}+nSeconds,2)

messagebox(TTOC({^2005/01/01 00:00}+367,2))

this shows 12:06:07 AM
I want it to show
00:06:07
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform