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.

Time Duration w/ milliseconds

Featured Replies

Need a custom function that calculates the duration of two fields that are formatted:

##:P##:##:##

filemaker doesn't recognize milliseconds.

Assuming those are text fields, try:


GetAsTime ( Replace ( EndTime ; 9 ; 1 ; ".0" ) ) 

-

GetAsTime ( Replace ( StartTime ; 9 ; 1 ; ".0" ) ) 

---

P.S. Are you sure those are milliseconds at the end? That would be a very weird way to put them: what if there are more than 99 (there can be up to 999)? The format looks like timecode, with frames at the end.

Edited by Guest

filemaker doesn't recognize milliseconds.

FileMaker recognize even milliseconds, but they are a fraction of seconds.

Try:

Case(

PatternCount ( text ; ":" ) = 3 ; GetAsTime ( Replace ( text ; Position ( text ; ":" ; 1 ; 3 ) ; 1 ; Left ( 1/2 ; 1 ) ) ) ;

GetAsTime ( text )

)

".0"

Why that zero ?

(there can be up to 999)

there can be up to 999999

there can be up to 999999

Not if they are milliseconds.

Aren't they 999.999 milliseconds ?

But I was pointing on the fact that FileMaker recognize decimals of second till the sixth power, not more.

We have a context issue here: I was referring to the given format ##:P##:##:##. If the last two digits are milliseconds, then there is a problem how to express half a second.

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.