From: Tom Lane <tgl@sss.pgh.pa.us>
To: poange@technologist.com
Cc: Karel Zak <zakkr@zf.jcu.cz>
Cc: pgsql-sql@postgresql.org
Subject: Re: a question about dates and timestamp
Date: Thu, 03 Aug 2000 11:20:44 -0400
Message-ID: <8145.965316044@sss.pgh.pa.us> (raw)
In-Reply-To: <00080311565801.00710@ange.alpinfo.fr>
References: <Pine.LNX.3.96.1000803105727.31239A-100000@ara.zf.jcu.cz>
<00080311565801.00710@ange.alpinfo.fr>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, poange@technologist.com, zakkr@zf.jcu.cz
Subject: Re: a question about dates and timestamp
In-Reply-To: <8145.965316044@sss.pgh.pa.us>
References: <Pine.LNX.3.96.1000803105727.31239A-100000@ara.zf.jcu.cz> <00080311565801.00710@ange.alpinfo.fr> <8145.965316044@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox