TIME-to-TIMESTAMP Conversion Example 13 - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

In this example, the current timestamp is:

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

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

SELECT CAST(TIME '08:30:00' AS TIMESTAMP(0) AT 'America Pacific');

The result of the query is:

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