Re: Date Time Function / Age

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Date Time Function / Age
Дата
Msg-id 20030829030750.GA5204@wolff.to
обсуждение исходный текст
Ответ на Date Time Function / Age  (Alex <alex@meerkatsoft.com>)
Список pgsql-general
On Thu, Aug 28, 2003 at 23:09:44 +0900,
  Alex <alex@meerkatsoft.com> wrote:
> Hi,
> is there an easy way to get the Difference between 2 dates in Days... as
> an integer?
>
> age('date1','date2') results in  x years y days or something similar.
> but I would like to
> have the result in number of days as an integer.

If you subtract two dates (not timestamps) you will get an integer that is
the number of days difference in the dates.

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

Предыдущее
От: Ursula Lee
Дата:
Сообщение: Unsubscribe from the list
Следующее
От: expect
Дата:
Сообщение: Re: How does it work