Re: Difference between dates

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Difference between dates
Дата
Msg-id 11648.1230135074@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Difference between dates  (Bastiaan Olij <lists@basenlily.nl>)
Список pgsql-novice
Bastiaan Olij <lists@basenlily.nl> writes:
> What I'm trying to do is get the difference between two dates either in
> minutes, hours, days, months or years.

Well, you can get the difference in seconds using EXTRACT(EPOCH FROM
timestamp_difference) and then do your own arithmetic ...

            regards, tom lane

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

Предыдущее
От: Bastiaan Olij
Дата:
Сообщение: Difference between dates
Следующее
От: Bruce Hyatt
Дата:
Сообщение: Re: Fw: Re: connection refused