Re: a question about dates and timestamp

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: poange(at)technologist(dot)com
Cc: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>, pgsql-sql(at)postgresql(dot)org
Subject: Re: a question about dates and timestamp
Date: 2000-08-03 15:20:44
Message-ID: 8145.965316044@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ange Michel POZZO <poange(at)technologist(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mark Volpe 2000-08-03 15:30:27 PL/pgSQL evaluation order
Previous Message Tom Lane 2000-08-03 15:05:09 Re: What is happening?