Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

hh:mm:ss to decimal number?

Featured Replies

Can anyone help me do this?

hh:mm:ss to decimal number

I've seen the function to do just hh:mm to a decimal number, but I'm not sure how to be able to handle the seconds part of it.

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

  • Author

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)

(Hour (xTime) +

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

(Seconds (xTime) * 100) / 3600)

/ 100)

How about just =

xTime / 3600

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

That will give you the number of seconds - not hours as the OP wants.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.