Skip to content

LOCALTIME

  • precision: This parameter specifies the number of fractional digits retained in the seconds field. The input can be an integer ranging between 0 and 6. If no precision parameter is provided, PostgreSQL will default to 0, meaning no fractional second digits are shown.
SELECT LOCALTIME;
15:26:43.449135

The SQL command SELECT LOCALTIME; is asking the database to return the current time where the server is located.