MobilityDB 1.1

◆ pg_interval_justify_hours()

Interval * pg_interval_justify_hours ( const Interval span)

Add an interval to a timestamp data type.

Adjust interval so 'time' contains less than a whole day, adding the excess to 'day'. This is useful for situations (such as non-TZ) where '1 day' = '24 hours' is valid, e.g. interval subtraction and division.

Note
PostgreSQL function: Datum interval_justify_hours(PG_FUNCTION_ARGS)