Re: Time difference without intervals

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Time difference without intervals
Дата
Msg-id 20021109155232.GA18883@wolff.to
обсуждение исходный текст
Ответ на Re: Time difference without intervals  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On Fri, Nov 08, 2002 at 16:11:05 -0500, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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() ...

I looked at to_char before suggesting extract. The problem is that to_char
will only return hours modulo days. His question implied that he was
going to have intervals longer than a day, so I don't believe to_char
will work.


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Some more weird NULL behavior
Следующее
От: "Zhidian Du"
Дата:
Сообщение: table protein does not have an attribute oid? why?