Jump to content

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

Recommended Posts

  • Newbies
Posted

I am trying to design a time clock. I need some help defining the necessary calculations to show the differenc between two times in the correct format (For example: In at 9, out at 5 fifteen should equal 8.25 .... but right now our formula returns 8.15 which is in essence correct in the sense that it is saying a quarter of an hour in 24hr time)

Right now we are using a timetotext(IN) and timetotext(OUT) formula.

Is there a proper way to do this sort of thing?

Any suggestions would be greatly appreciated.

Cheers,

Peter

Posted

Use the functions Hour(time) and Minute(time) to separate the component parts. Minutes can be turned into decimal hours by dividing by 60.

DecimalTime = Hour(time) + Minute(time)/60

-bd

This topic is 8918 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.