Jump to content

Rounding up/down Time


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

Recommended Posts

Hello

I have a calculation field that adds together some time fields. (a+b+c=d)

At the moment the answer of d is always hours:mins:seconds

Im struggling to find a way to round up or down the result to the nearest minute, 10mins, or hour.

(Ive tried the Round, Ceiling and Truncate functions without effect).

Any ideas?

Link to comment
Share on other sites

Try Round ( TestTime / 600 ; 0 ) * 600

Time is number of seconds from midnight. 10 minutes = 600 seconds, so dividing by 600 gives the number of 10 minute parts. The Round gets rid of the fraction. Mutipling by 600 gets it back to time.

Link to comment
Share on other sites

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