Re: interval to seconds conversion. How?

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: interval to seconds conversion. How?
Date: 2004-10-27 22:39:05
Message-ID: 20041027223905.GA6293@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 28, 2004 at 04:08:53AM +0600, Denis Zaitsev wrote:
> How can I calculate the number of second in some interval? Neither
> the secods part, nor the seconds after midnight... Just the full
> quantity of the seconds. I haven't find any function.

I think you can do that using

EXTRACT(epoch FROM interval-value)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"The problem with the future is that it keeps turning into the present"
(Hobbes)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guy Fraser 2004-10-27 22:40:32 Re: '1 year' = '360 days' ????
Previous Message Denis Zaitsev 2004-10-27 22:37:21 Re: interval to seconds conversion. How?