DATE/TIME - Advanced SQL Engine - Teradata Database

Database Utilities

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
ynh1604715438919.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1102
lifecycle
previous
Product Category
Teradata Vantageā„¢

Purpose

The DATE and TIME commands are synonyms. Both show the same display of current system day, date, and time.

Syntax

{ DATE | TIME }

Usage Notes

The DATE or TIME command shows a timestamp in the following format:

DDD mmm dd, yyyy HH:MM:SS
Format Description
DDD Abbreviated name of the day of the week.
mmm dd, yyyy Abbreviated name of the calendar month, numeric day, and four-digit year.
HH:MM:SS Current system time in hour, minutes, and seconds.

Examples: DATE and TIME command outputs

> date
date

Thu Jul 02, 2016  18:17:05

> time
time

Thu Jul 02, 2016  18:22:14