format return of "age" to hh:mm

Поиск
Список
Период
Сортировка
От David Gauthier
Тема format return of "age" to hh:mm
Дата
Msg-id CAMBRECB7TGJzy5X7i3XBopz2q5qhR1Di358upEKmLukpWBjWdQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: format return of "age" to hh:mm
Re: format return of "age" to hh:mm
Re: format return of "age" to hh:mm
Список pgsql-general
Hi:

How does one reformat the output of the "age" function to always be in terms of hours:mins.

E.g. 

dvdb=> select age('2020-03-05 01:40:32-05','2020-03-01 21:56:05-05');
       age      
-----------------
 3 days 03:44:27
(1 row)

I want...

"75:44"

I'm not married to "age"  If there's a better way to do this that's fine too.

Thanks in advance !  

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

Предыдущее
От: Kevin Brannen
Дата:
Сообщение: RE: trouble making PG use my Perl
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: A question about the number of times a trigger will fire