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

From: Achilleas Mantzios Julius Tuskenis , pgsql-admin(at)postgresql(dot)org Re: how to get a number of seconds in some interval ? 2008-05-12 15:01:34 200805121801.35101.achill@matrix.gatewaynet.com (view raw, whole thread or download thread mbox) 2008-05-12 13:44:16 from Julius Tuskenis  2008-05-12 14:24:38 from Achilleas Mantzios   2008-05-12 15:01:34 from Achilleas Mantzios    2008-05-12 15:09:11 from Tom Lane     2008-05-13 06:20:09 from Julius Tuskenis     2008-05-13 06:56:50 from Achilleas Mantzios      2008-05-13 08:22:28 from "Scott Marlowe"       2008-05-13 08:41:00 from Achilleas Mantzios       2008-05-13 08:42:41 from Shane Ambler        2008-05-13 08:48:32 from "Scott Marlowe"      2008-05-13 14:15:27 from Tom Lane 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
> >> UAB nSoft
> >> mob. +37068233050
> >>
> >>
> >>
> >
> >
> >
> >
>
>

--
Achilleas Mantzios

```