Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 7355 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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

Posted

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?

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.