

SELECT ' 07:09:19- 10':: timestamp AT TIME ZONE 'America/Chicago' SELECT ' 07:09:19':: timestamp AT TIME ZONE 'America/Chicago' This behavior is also shown in AT TIME ZONE: This is because casting a value to TIMESTAMP WITHOUT TIME ZONE ignores any specified time zone: It doesn't matter if a time zone designation is specified in the ::timestamp string - only the date and time are used. What is basically happening above is that the date and time are interpreted as being in the specified time zone (e.g., America/Chicago), a TIMESTAMP WITH TIME ZONE value is created, and the value displayed in the default time zone ( -04). SELECT ' 07:09:19':: timestamp AT TIME ZONE ' Asia/Tokyo'

SELECT ' 07:09:19':: timestamp AT TIME ZONE ' America/Los_Angeles' SELECT ' 07:09:19':: timestamp AT TIME ZONE ' America/Chicago' First, let's see #1, AT TIME ZONE adding time zone designations: It is kind of odd for AT TIME ZONE to be used for both purposes, but the SQL standard requires this.

