Re: interval to seconds conversion. How?

From: Denis Zaitsev <zzz(at)anda(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: interval to seconds conversion. How?
Date: 2004-10-27 22:37:21
Message-ID: 20041028043720.A16380@macacos.ward.six
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 27, 2004 at 06:30:24PM -0400, Tom Lane wrote:
> Denis Zaitsev <zzz(at)anda(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-10-27 22:39:05 Re: interval to seconds conversion. How?
Previous Message Tom Lane 2004-10-27 22:30:24 Re: interval to seconds conversion. How?