From: | Michael Fuhr <mike(at)fuhr(dot)org> |
---|---|
To: | Bjørn T Johansen <btj(at)havleik(dot)no> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Convert time to millisec? |
Date: | 2006-08-28 14:32:49 |
Message-ID: | 20060828143249.GA4775@winnie.fuhr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Aug 28, 2006 at 04:18:12PM +0200, Bjørn T Johansen wrote:
> On Mon, 28 Aug 2006 07:20:02 -0600 Michael Fuhr <mike(at)fuhr(dot)org> wrote:
> > select extract(epoch from sum(Til - Fra)) * 1000.0 ...
>
> Do you know if this is supported on older versions of PostgreSQL
> as well? (eg. 7.4.x)
Yes, it is; I think it's worked since ancient times. See "Date/Time
Functions and Operators" in the "Functions and Operators" chapter
of the documentation for whatever versions you need. Here's a link
for 7.4:
http://www.postgresql.org/docs/7.4/interactive/functions-datetime.html
--
Michael Fuhr
From | Date | Subject | |
---|---|---|---|
Next Message | Harpreet Dhaliwal | 2006-08-28 14:42:12 | Re: Perl language creation failed |
Previous Message | Bjørn T Johansen | 2006-08-28 14:18:12 | Re: Convert time to millisec? |