Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Computing Length Of Time User Logged In
Message
 
To
08/06/1998 07:01:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00105725
Message ID:
00105726
Views:
36
Lincoln,

SECONDS() is actually the way to go. I don't know if it's in the documentation, but the SECONDS() function doesn't reset at midnight if FoxPro is running. This is because the main purpose of the SECONDS() function is to calculate elapsed time rather than absolute time.

>I'm trying to track the amount of time a user is logged in to a specific form. I need to calculate the difference between their form.init(login time) and form.destroy(logoff time) and display it as a character field in a log table. I've been trying by using the Seconds() function, but this only calculates seconds since midnight. Many of my users will be logged in from 9PM one night 'til 4AM the following morning. How can I track this? I'm sure this has been solved long ago, but I can't find it in the documentation.
>
>TIA
>
>--lincoln
Previous
Reply
Map
View

Click here to load this message in the networking platform