Re: a question about dates and timestamp - Mailing list pgsql-sql

From Tom Lane
Subject Re: a question about dates and timestamp
Date
Msg-id 8145.965316044@sss.pgh.pa.us
Whole thread Raw
In response to Re: a question about dates and timestamp  (Ange Michel POZZO <poange@technologist.com>)
List pgsql-sql
Ange Michel POZZO <poange@technologist.com> writes:
> select datetime(abstime( floor (value) ));
> select datetime(abstime( int4 (value) ));
> select datetime(abstime( numeric_int4 (value) ));

> in all case :
> ERROR:  pg_atoi: error in "952969611.000000": can't parse ".000000" 

That was fixed in January.  Update to 7.0 and it'll work fine.
You might be able to make it work in 6.5 like this:abstime(int4(float8(numeric)))
        regards, tom lane


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: What is happening?
Next
From: Dana.Reed@clinicaldatacare.com
Date:
Subject: SQL (table transposition)