Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating time cards
Message
 
À
28/11/2008 15:51:40
Randy Hooper
Ranco Business Software
Tampa, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01364561
Message ID:
01364564
Vues:
14
>clock in at 9:30am and clock out at 11:00am this calulate to 1.70, looking for 1.30, is this not what the form is for to asks questions.
>

Convert them to Date/Time (if they aren't already), then subtract them and convert back into hours:

ex.
ltStart = DATETIME(2008, 11, 28, 9, 30, 00)
ltEnd = DATETIME(2008, 11, 28, 11, 0, 00)
?(ltEnd - ltStart) / 60 / 60
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform