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

From Michael Fuhr
Subject Re: interval to seconds conversion. How?
Date
Msg-id 20041027225227.GA97676@winnie.fuhr.org
Whole thread Raw
In response to interval to seconds conversion. How?  (Denis Zaitsev <zzz@anda.ru>)
List 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.

test=> SELECT extract(epoch FROM '5 hours 42 minutes 35 seconds'::INTERVAL);
 date_part
-----------
     20555

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Thomas Hallgren
Date:
Subject: Re: Reasoning behind process instead of thread based
Next
From: Tom Lane
Date:
Subject: Re: Reasoning behind process instead of thread based