Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtracting hours
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00795391
Message ID:
00795426
Vues:
14
>numeric 99.99
>sample: start=15.30
> stop =19.00
lnStart=15.30
lnStop =19.00
lnMin = (INT(lnStop) * 60 + (lnStop - INT(lnStop))*100) - ;
	(INT(lnStart) * 60 + (lnStart - INT(lnStart))*100)  
lnHours = ROUND(INT(lnMin /60) + (lnMin % 60)*.01,2)	

? lnMin, lnHours 
* or one-liner
? lnStop - lnStart - ;
	IIF((lnStop - INT(lnStop)) < (lnStart - INT(lnStart)), .40, 0)
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform