Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference between two time stamps
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01360224
Message ID:
01360257
Vues:
8
>>
>>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform