Brian Dunning's FileMaker Custom Functions

TimeZoneAdjustTime ( startTime ; startTimeZoneUTC ; desiredTimeZoneUTC )

Converts a time from one time zone to another

  Average rating: 5.0 (2 votes) Log in to vote

Jonathan Mickelson   Jonathan Mickelson - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
TimeZoneAdjustTime ( "10:30 PM" ; -5 ; -8 )
TimeZoneAdjustTime ( "10:30 PM" ; "-5:00" ; "-8:00" )
TimeZoneAdjustTime ( "12:45 AM" ; -8 ; -12 )
TimeZoneAdjustTime ( "10:30 AM" ; "-7:00" ; "-2:00" )
TimeZoneAdjustTime ( "4:20 PM" ; "-8:00" ; "+5:30" )
  Sample output:
"7:30 PM" // ie. US Eastern to US Pacific
"8:45 PM" // ie. US Pacific to US Hawaii
"7:30 AM" // ie. US Mountain to RJ, Brazil
"5:50 AM" // ie. US Pacific to Mumbai, India

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

Converts a Time in a specified time zone to a different time zone, using the UTC number -5:00 or +3:00, representing the UTC Time Zone of the location, or their numeric versions -5 and +3 accordingly.

NOTE: Partial times in Time Zones must use the +11:30 UTC format.

NOTE: This calc does NOT take into account Daylight Savings Time in parameters. As such, it assumes the areas converted are all in the same Standard Time (SD) or Daylight Savings Time DST timezone offset. You can add in the DST calculations in your input, thus if you would normally use -5 for Eastern Standard Time, just make your input -4 for the Eastern DST. Both inputs for Timezone can use this technique, thus leaving the non-adjusted time zone for Hawaii would effectively convert from the ET (DST) to Hawaii (ST).



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