Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to calulate duration of time
Message
De
25/05/1999 13:40:18
 
 
À
25/05/1999 13:22:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00222554
Message ID:
00222580
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform