Postgres module

operator+

procedure · 3 overloadssince 0.27.0Source

Months, days and microseconds added field by field.

operator+ :: (a: Interval, b: Interval) -> Interval

Months, days and microseconds added field by field.

Parameters

a: Interval
the first interval.
b: Interval
the second interval.

Returns

operator+ :: (t: Timestamp, interval: Interval) -> Timestamp

The months come first, clamping the day to the end of the month ("Jan 31 + 1 month" is the end of February), then the days and the rest, all on the UTC calendar. An infinite timestamp stays as it is.

Parameters

t: Timestamp
the instant.
interval: Interval
the span to add.

Returns

operator+ :: (interval: Interval, t: Timestamp) -> Timestamp

t + interval.

Parameters

interval: Interval
the span to add.
t: Timestamp
the instant.

Returns

See also