Another date / time question

Поиск
Список
Период
Сортировка
От Vanole, Mike
Тема Another date / time question
Дата
Msg-id 468FC37AA22ACC439DE72726281E4B6001DCB986@tx-msg03-aln.wireless.attws.com
обсуждение исходный текст
Ответы Re: Another date / time question
Список pgsql-general

Hi,

I'm trying to query two timestamp(0) columns to determine elapsed time. I use the age() function which works fine, but I want to return the information in MINUTES.

So...

sel age(endtime, starttime)  returns 02:23:00, for example, or 2 days 03:05:03.

How can I get this to return 143 or 3065.nn - by my examples above - without parsing and substringing or extracting? Is there a clean way to "cast" this to minutes?

Thank you,
Mike

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

Предыдущее
От: Mike Sherrill
Дата:
Сообщение: Re: Help needed with normalisation
Следующее
От: "Robert Wille"
Дата:
Сообщение: pg_dump is missing data