Re: interval to seconds conversion. How?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: interval to seconds conversion. How?
Дата
Msg-id 20041027223905.GA6293@dcc.uchile.cl
обсуждение исходный текст
Ответ на interval to seconds conversion. How?  (Denis Zaitsev <zzz@anda.ru>)
Список 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)


В списке pgsql-general по дате отправления:

Предыдущее
От: Denis Zaitsev
Дата:
Сообщение: Re: interval to seconds conversion. How?
Следующее
От: Guy Fraser
Дата:
Сообщение: Re: '1 year' = '360 days' ????