Re: Date math question - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: Date math question
Date
Msg-id 20081126185707.GA23096@depesz.com
Whole thread Raw
In response to Date math question  (Kevin Kempter <kevink@consistentstate.com>)
List pgsql-general
On Wed, Nov 26, 2008 at 11:54:33AM -0700, Kevin Kempter wrote:
> select ts, ts + interval dursec seconds from tmp2 limit 1;
> select ts, ts + 'seconds' dursec from tmp2 limit 1;

select ts, ts + dursec * '1 second'::interval ...

depesz

--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

pgsql-general by date:

Previous
From: Kevin Kempter
Date:
Subject: Date math question
Next
From: Raymond O'Donnell
Date:
Subject: Re: Date math question