Re: Time handling in pgsql. (fwd)

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: "Jeff MacDonald" <jeff(at)interchange(dot)ca>, <nolan(at)celery(dot)tssi(dot)com>, "pgsql general list" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Time handling in pgsql. (fwd)
Date: 2003-04-22 17:46:01
Message-ID: 20030422174601.A9B96103C7@polaris.pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How about: select abstime(start)::int - abstime(start)::int

Cheers,
Steve

On Tuesday 22 April 2003 10:20 am, Jeff MacDonald wrote:
> Actually I'd be happy if i could simply do this
>
> SELECT age(start,end)::seconds From foo;
>
> or something very close to that. Then i could process
> the rest in perl.
>
> Jeff.
>
> >> From: pgsql-general-owner(at)postgresql(dot)org
> >> [mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of
> >> nolan(at)celery(dot)tssi(dot)com
> >> Subject: [GENERAL] Time handling in pgsql. (fwd)
> >>
> >> It would be great if the 'age' function could be supplied a formatting
> >> string so that you could format the data any way you want.
> >>
> >> Within that function convert both timestamps into seconds, do
> >> the arithmetic and return the number of seconds.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ryan Mahoney 2003-04-22 17:52:43 explain triggers
Previous Message Crercio O. Silva 2003-04-22 17:36:52 New DBTools Manager 2.1