Re: Converting epoch to timestamp?

From: Roberto Mello <rmello(at)cc(dot)usu(dot)edu>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Converting epoch to timestamp?
Date: 2001-08-01 13:29:29
Message-ID: 20010801072929.A19443@cc.usu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Aug 01, 2001 at 09:28:39AM +0100, Richard Huxton wrote:

> Hi Roberto - long time no see.

Hey Richard. Yeah. Summer classes and summer jobs :-) I have to finish
my expanded "Porting From Oracle" thingy.

>
> richardh=> select '1970-01-01'::date + '996654342 seconds'::interval;
> ?column?
> ------------------------
> 2001-08-01 08:25:42+01
> (1 row)

Duh! Guess I could have thought of that.
Thanks a lot.

-Roberto
--
+------------| Roberto Mello - http://www.brasileiro.net |------------+
Computer Science, Utah State University - http://www.usu.edu
USU Free Software & GNU/Linux Club - http://fslc.usu.edu
Space Dynamics Lab, Developer http://www.sdl.usu.edu
Veni, Vidi, VCR - I came, I saw, I videotaped it

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-08-01 14:02:53 Re: Converting epoch to timestamp?
Previous Message Richard Huxton 2001-08-01 08:28:39 Re: Converting epoch to timestamp?