Re: epoch to date? - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: epoch to date?
Date
Msg-id 20030508195441.GB4152@wolff.to
Whole thread Raw
In response to epoch to date?  (Alex Rice <alrice@ARCplanning.com>)
List pgsql-sql
On Thu, May 08, 2003 at 13:44:22 -0600, Alex Rice <alrice@ARCplanning.com> wrote:
> I have a column with seconds since the unix epoch. How to convert it to 
> date? Sorry I couldn't find it in the docs.

One way is:
select 'epoch'::timestamp + 1234 * '1 second'::interval;

Another is:
select 1234::abstime;



pgsql-sql by date:

Previous
From: Alex Rice
Date:
Subject: Re: does this require a stored procedure?
Next
From: "SZŰCS Gábor"
Date:
Subject: Re: Overwhelming DEBUG messages