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

From Tom Lane
Subject Re: interval to seconds conversion. How?
Date
Msg-id 25408.1098916224@sss.pgh.pa.us
Whole thread Raw
In response to interval to seconds conversion. How?  (Denis Zaitsev <zzz@anda.ru>)
Responses Re: interval to seconds conversion. How?
List pgsql-general
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)

            regards, tom lane

pgsql-general by date:

Previous
From: Guy Fraser
Date:
Subject: Re: '1 year' = '360 days' ????
Next
From: Denis Zaitsev
Date:
Subject: Re: interval to seconds conversion. How?