PERIOD(TIMESTAMP) |Teradata Preprocessor2 for Embedded SQL (PP2) - PERIOD(TIMESTAMP) - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Preprocessor2
Release Number
17.20
Published
April 2023
ft:locale
en-US
ft:lastEdition
2023-04-21
dita:mapPath
neh1679404006646.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2446
Product Category
Teradata Tools and Utilities

There are two timestamp values: the first timestamp value represents the start of the period and the second timestamp value follows the end of the period.

Only character host variable formats are supported. Two TIMESTAMP members, each with the format are returned, as shown in the following example:

Field Displacement Length Description
Seconds 0 4 This integer represents the number of seconds as a scaled decimal. For example, 12.56 seconds is returned as 12560000.
Year 4 2 This integer represents the year value.
Month 6 1 This integer represents the month value.
Day 7 1 This integer represents the day of the month.
Hours 8 1 This integer represents the number of hours.
Minutes 9 1 This integer represents the number of minutes.

The total length of the output is 20 bytes.