Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate a numeric value between to datetime fields
Message
De
18/02/2003 05:14:35
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
 
 
À
18/02/2003 04:41:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00754374
Message ID:
00754380
Vues:
25
Hi Koot,

Based on your values, EndTime - StartTime will return 34200 which is the time difference expressed in seconds. To express it as 9.5 (which is the number of hours) you need to divide by 3600 (60 seconds * 60 minutes).

Eg (EndTime - StartTime) / 3600 = 9.5

Regards,

Liam



>Can any body help with the above for a timesheet input.
>eg.
>StartTime = 02/18/2003 07:00:00
>EndTime = 02/18/2003 16:30:00
>EndTime - StartTime = 9.50
>
>Thanx
Liam O'Hagan
MCP VFP Desktop Apps
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform