Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different between two times
Message
De
03/02/2011 08:50:39
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01498476
Message ID:
01498520
Vues:
45
>Thanks Boris
>
>Was having a senior moment, was trying to take a datetime from the date(), doohhh!
>
>>>Hi
>>>
>>>I want to work out the difference between to datetimes, IE the current datetime - m.sdatetimestarted
>>>
>>>Any ideas?
>>
>>Difference between two datetimes are in seconds:
>>
>>sdatetimestarted = DATETIME(2011,1,31,23,12,00)
>>? DATETIME() - sdatetimestarted
>>
You can do that either ;-)
sdatetimestarted = DTOT(DATE())
?DATETIME - sdatetimestarted
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform