Re: convert from epoch to timestamp - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: convert from epoch to timestamp
Date
Msg-id 20050509210136.GA10972@wolff.to
Whole thread Raw
In response to convert from epoch to timestamp  ("Celia McInnis" <celia@drmath.ca>)
List pgsql-novice
On Fri, May 06, 2005 at 19:39:26 -0500,
  Celia McInnis <celia@drmath.ca> wrote:
> This time I'll give an appropriate subject...

Please don't reply to existing threads to start a new one, even if you change
the subject.

> How to I convert from EPOCH time to a "TIMESTAMP WTHOUT TIME ZONE" type?

The simplest is probably:
select 1::abstime at time zone 'UTC';
Where you replace '1' by whatever number has the integer number of seconds
since the epoch. If you need fractional seconds then you need to multiply
the number seonds times and interval of 1 second and add it to the
the start of the epoch.

pgsql-novice by date:

Previous
From: William Yu
Date:
Subject: Re: downloading files- more details
Next
From: Bruno Wolff III
Date:
Subject: Re: returned row number