Jump to content
Sign in to follow this  
jasonwood

Time as decimal

Recommended Posts

I have two time fields, start time and end time.

I want to have a third field that calculates the number of HOURS in decimal format.

So if the difference between the time fields is 1:30, the calculation field would be "1.5"

Any help?

Share this post


Link to post
Share on other sites

Sometimes asking the question is all it takes to figure it out...

Here's what I came up with:

(

 ( ( Hour ( logTimeEnd ) * 60 ) + Minute ( logTimeEnd ) ) - 

 ( ( Hour ( logTimeStart ) * 60 ) + Minute ( logTimeStart ) )

) / 60 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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