convert epoch to date

From: Kevin Kempter <kevink(at)consistentstate(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: convert epoch to date
Date: 2009-08-30 18:45:33
Message-ID: 200908301245.33426.kevink@consistentstate.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all;

I know how to convert a date to an epoch:

select extract ('epoch' from timestamp '2009-08-12')

How do I do the opposite, I want to convert epoch values to a date

Thanks in advance

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2009-08-30 19:13:39 Re: Connecting to Teradata via Postgresql
Previous Message Ow Mun Heng 2009-08-30 15:21:55 Connecting to Teradata via Postgresql