CURRENT_TIMESTAMP

Purpose

This function returns the current timestamp, interpreted in the current session time zone.

Syntax

current_timestamp::=

Current Timestamp

Usage Notes

  • The return value is of data type TIMESTAMP(precision) WITH LOCAL TIME ZONE. If no precision is given, the data type is TIMESTAMP(3) WITH LOCAL TIME ZONE.

  • The return value is limited to microsecond precision, even if precision is greater than 6.

  • The function NOW is an alias for CURRENT_TIMESTAMP(3).

  • Other functions for the current moment:

Example

SELECT CURRENT_TIMESTAMP, CURRENT_TIMESTAMP(6);