X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8EB2447621C for ; Mon, 12 May 2003 11:26:36 -0400 (EDT) Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by postgresql.org (Postfix) with ESMTP id C82384758F1 for ; Mon, 12 May 2003 11:26:35 -0400 (EDT) Received: from lerlaptop.iadfw.net (lerlaptop.iadfw.net [206.66.13.21]) (authenticated bits=0) by lerami.lerctr.org (8.12.9/8.12.9/20030225) with ESMTP id h4CFQUKK021140; Mon, 12 May 2003 10:26:31 -0500 (CDT) Date: Mon, 12 May 2003 10:26:30 -0500 From: Larry Rosenman To: Achilleus Mantzios , Lucas Lain Cc: Bruno Wolff III , pgsql-sql@postgresql.org Subject: Re: epoch to timestamp Message-ID: <84320000.1052753190@lerlaptop.iadfw.net> In-Reply-To: References: X-Mailer: Mulberry/3.0.3 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=-16.3 required=5.0 tests=BAYES_01,IN_REP_TO,REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/217 X-Sequence-Number: 13382 --On Monday, May 12, 2003 18:30:11 -0200 Achilleus Mantzios wrote: > On Mon, 12 May 2003, Lucas Lain wrote: > >> i really dont know how to do it ... i'm a newbie >> it is something like this? >> >> select cast(105471234 AS abstime) ... >> >> and then? > > Just do > select 105471234::abstime::timestamp; > Along the same lines, how can I get from seconds to hour/minute/seconds? (an interval?) -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749