Internal Representation of TIMESTAMP - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Conceptually, TIMESTAMP is treated as a record composed of six fields, defined appropriately for the Gregorian calendar.

Field Name Minimum Value Maximum Value Storage Format
SECOND 00.000000 61.999999

This value accounts for leap seconds that can be added to the clock.

INTEGER (DECIMAL(8,6))
YEAR 0001 9999 SMALLINT
MONTH 01 12 BYTEINT
DAY 01 28, 29, 30, or 31

(depending on the month and year)

BYTEINT
HOUR 00 23 BYTEINT
MINUTE 00 59 BYTEINT

Although composed of numeric fields, the record is not treated as a numeric value.

The length of the internal stored form is 10 bytes.