Re: interval to seconds conversion. How?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: interval to seconds conversion. How?
Дата
Msg-id 25408.1098916224@sss.pgh.pa.us
обсуждение исходный текст
Ответ на interval to seconds conversion. How?  (Denis Zaitsev <zzz@anda.ru>)
Ответы Re: interval to seconds conversion. How?  (Denis Zaitsev <zzz@anda.ru>)
Список 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 по дате отправления:

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