Search Postgresql Archives

Re: Convert time to millisec?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux