In PostgreSQL, the now()
function returns the current date and time (including the time zone offset), at the start of the current transaction.
It’s the equivalent of the transaction_timestamp()
function.
It’s also similar to the current_timestamp
function (when called without an argument).
The now()
function doesn’t accept any parameters, so you can’t specify its precision, whereas current_timestamp
can be called with or without a precision parameter.
Also, now()
is non-SQL-standard (as is the transaction_timestamp()
function).