problem with unixtime conversion - Mailing list pgsql-general

From Nathan Suderman
Subject problem with unixtime conversion
Date
Msg-id se23dd50.080@groupwise6.pollstar.com
Whole thread Raw
Responses Re: problem with unixtime conversion
Re: problem with unixtime conversion
List pgsql-general
does anyone know why I get the following error?  running postgres 7.3.1
 

test=> select date(date_part('epoch','now'::date)::int);
ERROR:  Bad date external representation '1042502400'
 
better yet does anyone have a better way to convert unixtime back to standard readable time?

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: DATESTYLE
Next
From: "Ragnar Garli"
Date:
Subject: Re: pg_dump fail beacuse of oid larger than int32