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:
-5

  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 https://www.briandunning.com/cf/2058

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. 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 19 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: