Re: Regarding interval conversion functions and a seeming lack of usefulness

Поиск
Список
Период
Сортировка
От Bill Moran
Тема Re: Regarding interval conversion functions and a seeming lack of usefulness
Дата
Msg-id 20080227113216.ecdff652.wmoran@collaborativefusion.com
обсуждение исходный текст
Ответ на Re: Regarding interval conversion functions and a seeming lack of usefulness  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Regarding interval conversion functions and a seeming lack of usefulness
Список pgsql-general
In response to Tom Lane <tgl@sss.pgh.pa.us>:

> Bill Moran <wmoran@collaborativefusion.com> writes:
> > There seems to be a lack of useful functions for converting intervals
> > to useful representations.  For example, I want to display an interval
> > in hours and fractions of hours only, not hours and minutes.
>
> Perhaps EXTRACT(EPOCH ...) to get total seconds and then do some
> arithmetic?

Well, that's more or less what I've been doing (although the EPOCH
thing shortened the code up a bit, thanks!).

It just seemed like this would be something so common that there'd
be something in existence already.  I guess I was wrong.

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@collaborativefusion.com
Phone: 412-422-3463x4023

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

Предыдущее
От: Gordon
Дата:
Сообщение: Re: Query meltdown: caching results
Следующее
От: "akshay bhat"
Дата:
Сообщение: help for loading a psql file