Skip 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.

Time calc - Newbie question

Featured Replies

Need some newbie help here..

How do I calculate two time fields?

I have a "start time" and a "stop time".

What I want is to calculate this, so I can get the total hours in a third field named "total time".

And, if these hours are passing midnight?

Confused :)

Use timestamps instead.

-jens

  • Author

If I understand timestamps correct, I have to auto enter a timestamp in "start" and "stop", using a script or something. Then calculate the two timestamp values?

Does it work even if the time is passing midnight?

How do I show the result in hours?

Don't need the date and everything...

Thx.

Hi, Jaman,

I had a similar problem.

See my post #197367

set the timestamps simply by

Timestamp ( Get( CurrentDate ) ; Get( CurrentTime ) )

and subtract start_timestamp from stop_timestamp. The result is in seconds.

-jens

To answer a question you've asked twice:

"Does it work even if the time is passing midnight?"

Timestamps are beautiful. Because they include the date, they will perform math properly past midnight, adjust for months, years and leap-years. To show the result in hours, format the result as Time field. :wink2:

  • Author

Got it...

Thanks :

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.