↑↓ 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

justify_interval

Read the PG 18 manual

Adjust interval using justify_days and justify_hours, with additional sign adjustments

Reading PG 18current·documented in 21 of 27 versions, 8.2 to 20

Signatures & examples

justify_interval ( interval ) → interval
Adjust interval using justify_days and justify_hours, with additional sign adjustments
justify_interval(interval '1 mon -1 hour') → 29 days 23:00:00
Version history 2
  1. 12 → 13 changed
  2. 8.1 → 8.2 added

Definition snapshot: b7bd9cda · English manual source