X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0E581D1B8E7 for ; Thu, 28 Aug 2003 14:41:02 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 26376-01 for ; Thu, 28 Aug 2003 11:40:20 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id 9BB4ED1D9F4 for ; Thu, 28 Aug 2003 11:40:09 -0300 (ADT) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id F24BA2B3CE; Thu, 28 Aug 2003 16:39:46 +0200 (CEST) Message-ID: <3F4E1449.5040807@klaster.net> Date: Thu, 28 Aug 2003 16:40:09 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5a) Gecko/20030718 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: brett@cloud9.net Cc: pgsql-sql@postgresql.org Subject: Re: interval conversion References: <61031.63.142.161.101.1062077015.squirrel@frank.mercea.net> In-Reply-To: <61031.63.142.161.101.1062077015.squirrel@frank.mercea.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/344 X-Sequence-Number: 14960 > Hello all! > > I have a possibly stupid question- I'm doing some time calculations yielding > intervals, and for my purposes I need to convert the interval(say, "1 day 8 > hours") into (floating point) hours. While there's a plethora of handy > date_extract functionality and the like, I need a conversion. > > Any suggestions on how to accompish this? Simpler the better, of course. extract(epoch from some_interval)/3600 Regards, Tomasz Myrta