Jump to content
The ORIGINAL FileMaker Community - Forum - Online Business Apps & Software Forum
Data Dud

Speaking of time..

Recommended Posts

Data Dud

I have a "Volunteer Hours Log" that, among other things, logs my volunteer hours. I'm having a little problem trying to calculate subtracting "End Time" from "Start Time". I'm using the 24hr format so when, for instance, the individual starts at 0800 and ends at 1300 my result is 500. I'm sure the solution is simple but for some reason tonight I can't see the forrest for the trees... Any help would be kindly appreciated.

 

Thanks

Share this post


Link to post
Share on other sites
doughemi

Try

Let([

s_hr = Left(Start Time; 2);

s_min = Right(Start Time; 2);

e_hr = Left(End Time; 2);

e_min = Right(End Time; 2)];

If( not IsEmpty(e_hr);

(Time(e_hr; e_min; 0) - Time(s_hr; s_min; 0))/3600 ; ""

)

)

 

This will give you decimal hours. If you ever start volunteering on one day and finish the next, this will not work. You will have to do a similar calculation with Timestamp instead of Time.

Edited by doughemi

Share this post


Link to post
Share on other sites
This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...

Important Information

Terms of Use