Book Contents

Book Index

Next Topic

Home

CURRENT_TIMESTAMP

CURRENT_TIMESTAMP returns a value of type TIMESTAMP WITH TIME ZONE representing today's date and time of day.

Syntax

CURRENT_TIMESTAMP [ ( precision ) ]

Semantics

 

precision

(INTEGER) causes the result to be rounded to the specified number of fractional digits in the seconds field.

Notes

Examples

> SELECT CURRENT_TIMESTAMP;

timestamptz

-------------------------------

2007-10-26 16:58:58.349569-04

(1 row)