Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Different between two times
Message
From
03/02/2011 08:50:39
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01498476
Message ID:
01498520
Views:
43
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform