Book Contents

Book Index

Next Topic

Home

LOCALTIMESTAMP

LOCAL_TIMESTAMP returns a value of type TIMESTAMP representing today's date and time of day.

Syntax

LOCALTIMESTAMP [ ( precision ) ]

Semantics

 

precision

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

Notes

Examples

> SELECT LOCALTIMESTAMP;

timestamp

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

2007-10-26 16:58:58.349569

(1 row)