Received: from fslc.ser.usu.edu (fslc.ser.usu.edu [129.123.28.122]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f71DTgf27151 for ; Wed, 1 Aug 2001 09:29:42 -0400 (EDT) (envelope-from rmello@fslc.usu.edu) Received: from rmello by fslc.ser.usu.edu with local (Exim 3.22 #1 (Debian)) id 15Rw41-00054l-00; Wed, 01 Aug 2001 07:29:29 -0600 Date: Wed, 1 Aug 2001 07:29:29 -0600 From: Roberto Mello To: Richard Huxton Cc: pgsql-sql@postgresql.org Subject: Re: Converting epoch to timestamp? Message-ID: <20010801072929.A19443@cc.usu.edu> References: <20010801005708.A16786@cc.usu.edu> <001b01c11a63$f86779e0$1001a8c0@archonet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001b01c11a63$f86779e0$1001a8c0@archonet.com> User-Agent: Mutt/1.3.18i X-Archive-Number: 200108/3 X-Sequence-Number: 4224 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