timeofday ( ) → textCurrent date and time (like
clock_timestamp, but as a text string); see Section 9.9.5timeofday() → Mon Dec 23 14:39:53.662522 2019 EST
Functions / Date/Time Functions And Operators
Current date and time (like clock_timestamp, but as a text string); see Section 9.9.5
Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20
timeofday ( ) → textCurrent date and time (like
clock_timestamp, but as a text string); see Section 9.9.5timeofday() → Mon Dec 23 14:39:53.662522 2019 EST
timeofday()
transaction_timestamp() is equivalent to CURRENT_TIMESTAMP, but is named to clearly reflect what it returns. statement_timestamp() returns the start time of the current statement (more specifically, the time of receipt of the latest command message from the client). statement_timestamp() and transaction_timestamp() return the same value during the first statement of a transaction, but might differ during subsequent statements. clock_timestamp() returns the actual current time, and therefore its value changes even within a single SQL statement. timeofday() is a historical PostgreSQL function. Like clock_timestamp(), it returns the actual current time, but as a formatted text string rather than a timestamp with time zone value. now() is a traditional PostgreSQL equivalent to transaction_timestamp().Definition snapshot: b7bd9cda · English manual source