DATE-to-TIMESTAMP Conversion Usage Notes - 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

The following table shows the result of the CAST function or Teradata conversion based on the options specified. If the target precision is higher than zero, trailing zeros are added in the result to adjust the precision.

Option Local Timestamp Value
AT LOCAL Formed from source date_expression with time portion set to '00:00:00'. Result is formed from this local timestamp value adjusted to UTC by subtracting time zone displacement based on current session time zone.

This is the same as not specifying the AT clause.

AT [ TIME ZONE ] expression Formed from source date_expression with time portion set to '00:00:00'. Result is formed from this local timestamp value adjusted to UTC by subtracting time zone displacement defined by expression.
AT [ TIME ZONE ] time_zone_string Formed from source date_expression with time portion set to '00:00:00'. Time zone displacement is based on time_zone_string and local timestamp value. Result is formed from local timestamp value adjusted to UTC by subtracting time zone displacement.