Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to calulate duration of time
Message
From
25/05/1999 13:40:18
 
 
To
25/05/1999 13:22:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00222554
Message ID:
00222580
Views:
23
>Hi,
> If i want the total duration time result in hours, how? That,
>means the minutes and seconds will convert to hours and the result in hours will have decimal point !!!
> Actually i want to use the results of duration time to do a calculation that is based on hour !!
>thanks

an hour is 3600 seconds, so:

tStartTime= DATETIME()
* do something
nTimeInHours = (DATETIME()-tStartTime)/3600

>
>regard,
>chang
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform