Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference between two time stamps
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01360224
Message ID:
01360257
Views:
9
>>
>>cTime1 = "11:27"
>>cTime2 = "13:45"
>>
>>lnDiffSec = CTOT(cTime2) - CTOT(cTime1) + 1
>>? lnDiffSec, INT(lnDiffSec/60 )
>>
>>
>
>Thank you very much. This is very simple. Now I need to make this work if the dates on which the times were taken are different.

You can do it the same way for different dates: convert to a datetime and calculate difference.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform