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

Read the PG 18 manual

Adjust interval, converting 24-hour time periods to days

Reading PG 18current·documented in 22 of 27 versions, 8.1 to 20

Signatures & examples

justify_hours ( interval ) → interval
Adjust interval, converting 24-hour time periods to days
justify_hours(interval '50 hours 10 minutes') → 2 days 02:10:00
Version history 2
  1. 12 → 13 changed
  2. 8.0 → 8.1 added

Definition snapshot: b7bd9cda · English manual source