From: Bruno Wolff III <bruno@wolff.to>
To: Alex Rice <alrice@ARCplanning.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: epoch to date?
Date: Thu, 8 May 2003 14:54:41 -0500
Message-ID: <20030508195441.GB4152@wolff.to> (raw)
In-Reply-To: <7784EC60-818D-11D7-A998-000393529642@ARCplanning.com>
References: <7784EC60-818D-11D7-A998-000393529642@ARCplanning.com>
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;
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, alrice@ARCplanning.com
Subject: Re: epoch to date?
In-Reply-To: <20030508195441.GB4152@wolff.to>
* 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