Re: interval to seconds conversion. How? - Mailing list pgsql-general

From Denis Zaitsev
Subject Re: interval to seconds conversion. How?
Date
Msg-id 20041028043720.A16380@macacos.ward.six
Whole thread Raw
In response to Re: interval to seconds conversion. How?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Wed, Oct 27, 2004 at 06:30:24PM -0400, Tom Lane wrote:
> Denis Zaitsev <zzz@anda.ru> writes:
> > 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.
>
> EXTRACT(EPOCH FROM interval_value)

Yes, I've already found it...  :)  Thanks anyway.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: interval to seconds conversion. How?
Next
From: Alvaro Herrera
Date:
Subject: Re: interval to seconds conversion. How?