14
+--------------------------+-------------------------------------+-----------------------------------------------------------------+
15
|Name |Return Type |Description |
16
+==========================+=====================================+=================================================================+
17
|current_date |date |Current date |
18
+--------------------------+-------------------------------------+-----------------------------------------------------------------+
19
|current_time |time with time zone |Current time of day |
20
+--------------------------+-------------------------------------+-----------------------------------------------------------------+
21
|current_timestamp |timestamp with time zone |Current date and time (start of current transaction) |
22
+--------------------------+-------------------------------------+-----------------------------------------------------------------+
23
|localtime |time |Current time of day |
24
+--------------------------+-------------------------------------+-----------------------------------------------------------------+
25
|localtimestamp |timestamp |Current date and time (start of current transaction) |
26
+--------------------------+-------------------------------------+-----------------------------------------------------------------+
27
|now() |timestamp with time zone |Current date and time (start of current transaction) |
28
+--------------------------+-------------------------------------+-----------------------------------------------------------------+
29
|statement_timestamp() |timestamp with time zone |Current date and time (start of current statement) |
30
+--------------------------+-------------------------------------+-----------------------------------------------------------------+
31
|timeofday() |text |Current date and time (as a text string) |
32
+--------------------------+-------------------------------------+-----------------------------------------------------------------+
14
For examples of the following, see :doc:`current_time_functions`.
16
+-----------------------------------+-------------------------------------+-----------------------------------------------------------------+
17
|Name |Return Type |Description |
18
+===================================+=====================================+=================================================================+
19
|current_date |date |Current date |
20
+-----------------------------------+-------------------------------------+-----------------------------------------------------------------+
21
|current_time |time with time zone |Current time of day |
22
+-----------------------------------+-------------------------------------+-----------------------------------------------------------------+
23
|current_timestamp |timestamp with time zone |Current date and time (start of current transaction) |
24
+-----------------------------------+-------------------------------------+-----------------------------------------------------------------+
25
|localtime |time |Current time of day |
26
+-----------------------------------+-------------------------------------+-----------------------------------------------------------------+
27
|localtimestamp |timestamp |Current date and time (start of current transaction) |
28
+-----------------------------------+-------------------------------------+-----------------------------------------------------------------+
29
|now() |timestamp with time zone |Current date and time (start of current transaction) |
30
+-----------------------------------+-------------------------------------+-----------------------------------------------------------------+
31
|statement_timestamp() |timestamp with time zone |Current date and time (start of current statement) |
32
+-----------------------------------+-------------------------------------+-----------------------------------------------------------------+
38
For examples of the following, see :doc:`extract_date_functions`.
38
40
+--------------------------------+-----------------------+---------------------------------------+
39
41
|Name |Return Type |Description |
40
42
+================================+=======================+=======================================+