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 D3501D1B52F for ; Fri, 23 Apr 2004 05:47:05 -0300 (ADT) 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 20763-08 for ; Fri, 23 Apr 2004 05:47:03 -0300 (ADT) Received: from lexa.uniflux-line.net (unknown [217.26.168.126]) by svr1.postgresql.org (Postfix) with ESMTP id 8CC9CD1CCDC for ; Fri, 23 Apr 2004 05:46:57 -0300 (ADT) Received: by lexa.uniflux-line.net (Postfix, from userid 1000) id 141498005; Fri, 23 Apr 2004 11:46:52 +0300 (EEST) Date: Fri, 23 Apr 2004 11:46:52 +0300 From: Alexei Chetroi To: pgsql-sql@postgresql.org Subject: converting unix seconds to timestamp Message-ID: <20040423084651.GA1207@uniflux-line.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.5.1+cvs20040105i X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/250 X-Sequence-Number: 17625 Hi, I wish to convert unix seconds which are from 1970 to timestamp and connot find appropriate function for it. I know how to convert timestamp to unix second with extract(epoch FROM ...) but not reverse. Please Help. Regards -- Alexei Chetroi