agutleben Posted December 10, 2004 Posted December 10, 2004 I have a solution where I would like to track the number of hours, minutes, etc. that a user is in my system. I have the following fields that are trapped at solution entry and exit: Logfile_Action_Start_Time Logfile_Action_End_Time Can anyone point me in the right direction of creating a caclulated field to do this job. Many thanks!
Ender Posted December 10, 2004 Posted December 10, 2004 Just off the top of my head: Hours (calculation, number result) = Hour(Logfile_Action_End_Time - Logfile_Action_Start_Time) Minutes (calculation, number result) = Minute(Logfile_Action_End_Time - Logfile_Action_Start_Time) - Hours
Ender Posted December 10, 2004 Posted December 10, 2004 Probably easier to keep hours and minutes together in one time field: ElapsedTime (calculation, time result) = Logfile_Action_End_Time - Logfile_Action_Start_Time Do you need to count days too?
Barbecue Posted December 12, 2004 Posted December 12, 2004 With FM7, you have the option of using a TimeStamp field instead of a Time field. That would eliminate the need to do special checks if your time frame extends past midnight.
Recommended Posts
This topic is 7355 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now