Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference between two hours
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01011564
Message ID:
01011566
Views:
15
If time difference < 24 hours
? TimeDiff("21:30", "23:33")

FUNCTION TimeDiff
LPARAMETERS tcStartTime, tcEndTime
LOCAL lnSec
lnSec = CTOT(tcEndTime) - CTOT(tcStartTime)
RETURN PADL(INT(lnSec/3600), 2, "0") + ":" + ;
		PADL(INT((lnSec%3600)/60),2, "0") + ":" 
>
>
>i search a utility program FOR calculate the result between two hours.
>
>Sample
>
>
>Beginning   21:30
>End         23:33
>Difference  02:03 or 2.05 Hours
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform