Postgres module

days

procedure · 1 overloadsince 0.27.0Source

Spans of time as an Interval, for arithmetic on timestamps: Pg.now() - Pg.days(7). A day is a calendar day, not 24 hours, as in Postgres; the rest are exact.

days :: (count: s32) -> Interval

Spans of time as an Interval, for arithmetic on timestamps: Pg.now() - Pg.days(7). A day is a calendar day, not 24 hours, as in Postgres; the rest are exact.

Parameters

count: s32
how many calendar days; negative for the past.

Returns

See also