Time zone manipulation

EQL provides two functions to obtain the corresponding timestamp in different time zones.

EQL supports the standard IANA Time Zone database (https://www.iana.org/time-zones).

The following table shows the results of several time zone expressions:

Expression Results
TO_TZ(TO_DATETIME('2012-07-05T16:00:00.000Z'), 'America/New_York') 2012-07-05T12:00:00.000Z
TO_TZ(TO_DATETIME('2012-01-05T16:00:00.000Z'), 'America/New_York') 2012-01-05T11:00:00.000Z
FROM_TZ(TO_DATETIME('2012-07-05T16:00:00.000Z'), 'America/Los_Angeles') 2012-07-05T23:00:00.000Z
FROM_TZ(TO_DATETIME('2012-01-05T16:00:00.000Z'), 'America/Los_Angeles') 2012-01-06T00:00:00.000Z