Brian Dunning's FileMaker Custom Functions

TimeLocalOffsetHours ( options )

Returns the local offset (in hours) from UTC.

  Be the first to rate this function Log in to vote

Dan Shockley   Dan Shockley - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
TimeLocalOffsetHours ( "" )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Returns the local offset in hours from UTC.
It compares the machine's local time to that returned by the native FileMaker function CurrentTimeUTCMilliseconds, then converts that to hours, keeping one decimal place in order to support half-hour time zones.
No dependencies, but can be used in combination with other time conversion functions to added to their usefulness. For example, can be used for the "time.UTCtoLocal", by Rob Poelking, found at



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: