Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference between two hours
Message
From
06/05/2005 09:02:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01011564
Message ID:
01011571
Views:
15
>Hi all,
>
>
>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
>
>
>Thank in advance
>
>bernhart
* H:M <=23:59
? SUBSTR(TTOC({^1999/12/31:}+ABS(CTOT("21:30")-CTOT("23:33")),3),12,5)
* H:M:S <=23:59:59
? TTOC({^1999/12/31:}+ABS(CTOT("21:30")-CTOT("23:33")),2)
Previous
Reply
Map
View

Click here to load this message in the networking platform