Re: Adding variable intervals to timestamps - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: Adding variable intervals to timestamps
Date
Msg-id 20050815204408.GA19311@wolff.to
Whole thread Raw
In response to Adding variable intervals to timestamps  ("Walker, Jed S" <Jed_Walker@cable.comcast.com>)
List pgsql-novice
On Mon, Aug 15, 2005 at 14:27:04 -0600,
  "Walker, Jed S" <Jed_Walker@cable.comcast.com> wrote:
> Hi,
>
> We need to add an interval (from a row in a table) to the curren time.
> Basically,
>
> Table1 has the column offset_in_secs that is an integer.
>
> Select current_timestamp + '<offset_in_secs> seconds' from table1;
>
> But can't figure out how to do this.

Select current_timestamp + offset_in_secs * '1 seconds' from table1;

pgsql-novice by date:

Previous
From: "Walker, Jed S"
Date:
Subject: Adding variable intervals to timestamps
Next
From: "Walker, Jed S"
Date:
Subject: Re: Adding variable intervals to timestamps