↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Date/Time Functions And Operators

current_time

Read the PG 18 manual

Current time of day; see Section 9.9.5

Reading PG 18current·documented in 26 of 27 versions, 7.2 to 20

Signatures & examples

current_time → time with time zone
Current time of day; see Section 9.9.5
current_time → 14:39:53.662522-05
current_time ( integer ) → time with time zone
Current time of day, with limited precision; see Section 9.9.5
current_time(2) → 14:39:53.66-05
CURRENT_TIME(precision)
CURRENT_TIME and CURRENT_TIMESTAMP deliver values with time zone; LOCALTIME and LOCALTIMESTAMP deliver values without time zone.
Version history 8
  1. 13 → 14 changed
  2. 12 → 13 changed
  3. 8.1 → 8.2 changed
  4. 8.0 → 8.1 changed
  5. 7.4 → 8.0 changed
  6. 7.3 → 7.4 changed
  7. 7.2 → 7.3 changed
  8. 7.1 → 7.2 added

Definition snapshot: b7bd9cda · English manual source