how to get number of minutes?

Поиск
Список
Период
Сортировка
От Chris Hoover
Тема how to get number of minutes?
Дата
Msg-id 1d219a6f0610061222gfee862fo3883ca5659d6c07a@mail.gmail.com
обсуждение исходный текст
Ответы Re: how to get number of minutes?  (Casey Duncan <casey@pandora.com>)
Список pgsql-general
If I subtract 2 timestamps, how do I get the results returned as the total number of minutes.

example

now() - (now()-'2 hours'::interval) = 2:00:00  -- I need the result returned as 120 minutes.

Thanks,

Chris

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: DELETE eats up all memory and crashes box
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Storing images in PostgreSQL databases (again)