X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 52B2BD1B516 for ; Thu, 16 Oct 2003 03:28:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 10238-03 for ; Thu, 16 Oct 2003 00:28:20 -0300 (ADT) Received: from chekov.mclachlan.com.au (unknown [203.185.220.172]) by svr1.postgresql.org (Postfix) with SMTP id 8E2F9D1B4EF for ; Thu, 16 Oct 2003 00:28:19 -0300 (ADT) Received: (qmail 24234 invoked from network); 16 Oct 2003 03:36:24 -0000 Received: from picard.mclachlan.com.au (192.168.1.254) by mail.mclachlan.com.au with SMTP; 16 Oct 2003 03:36:24 -0000 Received: (qmail 7774 invoked by uid 547); 16 Oct 2003 03:31:11 -0000 Date: Thu, 16 Oct 2003 13:31:11 +1000 From: Wilson Fletcher To: pgsql-sql@postgresql.org Subject: convert integer seconds to timestamp Message-ID: <20031016133111.A7731@mclachlan.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/184 X-Sequence-Number: 15584 How can I convert epoch seconds (as an interger) to a timestamp ? I've already seen the post below BUT it doesn't work. I suspect it is out of date: http://archives.postgresql.org/pgsql-sql/2000-09/msg00190.php thanks.