Is the int4 a UNIX epoch? ie. seconds since 1970?
If so, then this will generally work:
SELECT CAST(int4field AS abstime);
or
SELECT int4field::abstime;
Chris
-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org
[mailto:pgsql-sql-owner(at)postgresql(dot)org]On Behalf Of Lonh SENG
Sent: Tuesday, 13 August 2002 11:14 AM
To: pgsql-sql(at)postgresql(dot)org
Subject: [SQL] Conversion
Hi all,
How can I convert from int4 to date time?
Regards,
Lonh