Brian Dunning's FileMaker Custom Functions

time.UTCtoLocal ( theTimeStamp ; ZoneOffset ; ObservesDST )

Converts UTC timestamp to local time DST adjusted

  Average rating: 4.3 (3 votes) Log in to vote

Rob Poelking   Rob Poelking - Show more from this author
Excelisys, Inc.
http://excelisys.com

Share on Facebook Share on Twitter

  Sample input:
time.UTCtoLocal ( GetAsTimestamp ( BE_UTCMilliseconds/1000 ) ; -5 ; 1 )
  Sample output:
7/13/2017 4:04:03.7 PM

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

Takes UTC (GMT) time stamp and converts it to local time assuming the correct time zone offset in hours +/-h and whether or not the local area observes Daylight Saving. The start and end dates for daylight saving may need to be adjusted for locale outside of the U.S.

Depends on function written by Koji Takeuchi, Splash, Inc. for the DateByNthDOW function.

 

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

Under construction. Email me your wish list for improvements.