Postgres module

operator-

procedure · 3 overloadssince 0.27.0Source

Every field negated.

operator- :: (interval: Interval) -> Interval

Every field negated.

Parameters

interval: Interval
the interval to negate.

Returns

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

Months, days and microseconds subtracted field by field.

Parameters

a: Interval
the interval to take from.
b: Interval
the interval to take away.

Returns

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

t plus the negated interval.

Parameters

t: Timestamp
the instant.
interval: Interval
the span to take away.

Returns

See also