Re: how to get a number of seconds in some interval ?

Поиск
Список
Период
Сортировка
От Achilleas Mantzios
Тема Re: how to get a number of seconds in some interval ?
Дата
Msg-id 200805121801.35101.achill@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на how to get a number of seconds in some interval ?  (Julius Tuskenis <julius@nsoft.lt>)
Ответы Re: how to get a number of seconds in some interval ?
Список pgsql-admin
Στις Monday 12 May 2008 17:32:39 ο/η Julius Tuskenis έγραψε:
> Thank you, Achilleas.
>
> do you know why division of intervals was not implemented? As I see it -
> there should be an easy way to do so. '1 hour 30 minutes' / '1 hour' =
> 1.5 .... Seems straight forward...
>
No idea why. However as you pose it,it makes sense.
>
> Achilleas Mantzios rašė:
> > Στις Monday 12 May 2008 16:44:16 ο/η Julius Tuskenis έγραψε:
> >
> >> Hello,
> >>
> >> Is there a good method of knowing how mutch seconds does some interval
> >> have?? I tried my_interval / (interval '1 second'), but there is no
> >> operator interval / interval defines (I wonder why).
> >> Is there a method to do so?
> >>
> >>
> > smth like
> > dynacom=# SELECT extract(epoch from '49 hours 0 mins 12 seconds'::interval);
> >
> >
> >> --
> >> Julius Tuskenis
> >> Programavimo skyriaus vadovas
> >> UAB nSoft
> >> mob. +37068233050
> >>
> >>
> >>
> >
> >
> >
> >
>
>



--
Achilleas Mantzios

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

Предыдущее
От: "James Farrugia"
Дата:
Сообщение: Re: Orphan TOAST object
Следующее
От: Tom Lane
Дата:
Сообщение: Re: how to get a number of seconds in some interval ?