Re: interval to seconds conversion. How?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: interval to seconds conversion. How?
Дата
Msg-id 20041027225227.GA97676@winnie.fuhr.org
обсуждение исходный текст
Ответ на 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.

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

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

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

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Re: Reasoning behind process instead of thread based
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Reasoning behind process instead of thread based