Re: Time difference without intervals

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Time difference without intervals
Дата
Msg-id 27705.1036789865@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Time difference without intervals  (Roberto Mello <rmello@cc.usu.edu>)
Ответы Re: Time difference without intervals  (Bruno Wolff III <bruno@wolff.to>)
Re: Time difference without intervals  (Roberto Mello <rmello@cc.usu.edu>)
Список pgsql-sql
Roberto Mello <rmello@cc.usu.edu> writes:
> Is there any way to make a timestamp difference operation not return an
> interval? I'd like to get hours, minutes and seconds only, not the "1 day"
> or whatnot.

I think your complaint is not that you get an interval, but that you
want it displayed differently.  See to_char() ...
        regards, tom lane


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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: changing numeric into int
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Permission on insert rules