Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Operations with timeformat variables.
Message
From
29/06/2001 13:14:00
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
To
29/06/2001 12:42:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00522838
Message ID:
00525259
Views:
13
>Hello Al.
>I was testing the code that you gived me, but it return me a invalid result.
>I use this:
>

class=code
>ltDateTime1 = {^2001-06-22 09:00:00}
>ltDateTime2 = {^2001-06-23 15:00:00}
>lnTimeDifferenceInSeconds = ((ltDateTime2 - ltDateTime1)/3600)
>


>The result that it return me is: 30.0000
>The result of this must to be: 6
>What do you think is happening.?

You have two different days. Change the 22 to 23 in the first date and it will return 6!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform