Re: format return of "age" to hh:mm

Поиск
Список
Период
Сортировка
От Ray O'Donnell
Тема Re: format return of "age" to hh:mm
Дата
Msg-id cafcf50d-e796-3a57-53e8-f1d965368b89@rodonnell.ie
обсуждение исходный текст
Ответ на format return of "age" to hh:mm  (David Gauthier <davegauthierpg@gmail.com>)
Ответы Re: format return of "age" to hh:mm
Список pgsql-general
On 05/03/2020 15:50, David Gauthier wrote:
> Hi:
> 
> How does one reformat the output of the "age" function to always be in
> terms of hours:mins.

Hi there,

age() returns an interval, so without having tried it I'm guessing you
could use to_char() to format it whatever way you want.

Ray.

-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: pg_dump and public schema
Следующее
От: Andrei Zhidenkov
Дата:
Сообщение: Re: format return of "age" to hh:mm