TIMESTAMP-to-TIMESTAMP Conversion Example 7 - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

In this example, the current timestamp is:

            Current TimeStamp(6)
--------------------------------
2010-03-09 19:23:27.620000+00:00

The following statement converts the TIMESTAMP value '2010-03-09 08:30:00' to a TIMESTAMP WITH TIME ZONE value, where the time zone displacement is based on the time zone string, 'America Pacific'.

SELECT CAST(TIMESTAMP '2010-03-09 08:30:00' AS TIMESTAMP(0) 
   WITH TIME ZONE AT 'America Pacific');

The result of the query is:

      2010-03-09 08:30:00
-------------------------
2010-03-09 00:30:00-08:00