Examples | TIME and TIMESTAMP Format| Teradata Vantage - Example: TIME Output Format in Field Mode - Advanced SQL Engine - Teradata Database

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
zsn1556242031050.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1143
lifecycle
previous
Product Category
Teradata Vantageā„¢

The following table is a nonexhaustive list of formats that can be used to present an output time in field mode, where the data is 13:20:53.64+03:00.

FORMAT Phrase Result
FORMAT 'HH:MIBT' 01:20 PM
FORMAT 'HH:MI' 13:20
FORMAT 'HH.MI.SS' 13.20.53
FORMAT 'HH:MI:SSBT' 01:20:53 nachm

(nachm is German for PM.)

FORMAT 'HH:MI:SSDS(F)' 13:20:53.64
FORMAT 'HH:MI:SSDS(F)Z' 13:20:53.64+03:00
FORMAT 'HHhMImSSs' 13h20m53s