Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time operators
Message
 
 
To
10/09/1997 14:11:10
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00049372
Message ID:
00049429
Views:
61
>VFP documentation states that subtracting one time field from another gives the number of seconds between. I entered the following in the command window:
>
>firsttime = time()
>secondtime = time()
>btween = secondtime - firsttime
>
>?btween && should show the number of seconds elapsed between first 2 commands.
>
>this returns: 13:01:5813:01:55
>
>What's going on? How can I get the number of seconds betweeen two times?
>
>Erik

I would use datetime() as per Michel's suggestion.

It will makes things more simple, you don't need to worry about midnight or a span of a few days.
Previous
Reply
Map
View

Click here to load this message in the networking platform