Re: interval output format ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: interval output format ?
Дата
Msg-id 20031.984936085@sss.pgh.pa.us
обсуждение исходный текст
Ответ на interval output format ?  (David Pirotte <david@altosw.be>)
Список pgsql-general
David Pirotte <david@altosw.be> writes:
> how can I ask postgres  to return
>     43:18
> instead of
>     @ 1 day 19 hours 18 mins

I think right now the only way is to convert the interval value to
seconds (date_part('epoch', interval)) and then format it yourself.
to_char() ought to have support for formatting intervals, but seems
not to at the moment.

            regards, tom lane

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

Предыдущее
От: David Pirotte
Дата:
Сообщение: interval output format ?
Следующее
От: Boris
Дата:
Сообщение: ERROR: Bad timestamp external representation ''