Jump to content
Server Maintenance This Week. ×

hh:mm:ss to decimal number?


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

Recommended Posts

What exactly is "hh:mm:ss" - is it text, time or...? And "decimal number" - a number of what?

It is time format and I think I have it figured out.

The convert time field to a decimal number formula would be this (just need to test it still):

Hour (time field) + (((Minute (time field) x 100) / 60) + (Second (time field) x 100) / 3600) / 100

Had to tweak it - this is the correct calculation:

Round

(Hour (xTime) +

(((( Minute (xTime) * 100) / 60) +

(Seconds (xTime) * 100) / 3600)

/ 100); 6)

Link to comment
Share on other sites

You can also simply do this: GetAsNumber ( xTime ), or with a text string representing the time: GetAsNumber ( GetAsTime ( xTimeString ) )

Link to comment
Share on other sites

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