Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subtracting hours
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00795391
Message ID:
00795426
Views:
15
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform