X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A3C833A1AA6 for ; Fri, 31 Dec 2004 16:37:41 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04536-09 for ; Fri, 31 Dec 2004 16:37:34 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by svr1.postgresql.org (Postfix) with ESMTP id 761733A1AD5 for ; Fri, 31 Dec 2004 16:37:33 +0000 (GMT) Received: by rproxy.gmail.com with SMTP id g11so170863rne for ; Fri, 31 Dec 2004 08:37:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=r2zwd0xExe3oMONbl/i5I78DQO9VuFKHWPwwxJXtBIzuKqPuELeUkb3rQEnHs8wer7nXTY9xrulyFC4+Rt69VUDnKi5LGthoFq97gIqiVu82sg0jRaokkFlrNz3A/6d0pZZihMhB+5d3LHJGoI6X3egGv9nPx63XOtu0R6OIqoE= Received: by 10.38.4.61 with SMTP id 61mr292472rnd; Fri, 31 Dec 2004 08:37:32 -0800 (PST) Received: by 10.38.151.41 with HTTP; Fri, 31 Dec 2004 08:37:32 -0800 (PST) Message-ID: <238e52230412310837183fb730@mail.gmail.com> Date: Fri, 31 Dec 2004 11:37:32 -0500 From: Jamison Roberts Reply-To: Jamison Roberts To: pgsql-sql@postgresql.org Subject: Formatting an Interval Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200412/167 X-Sequence-Number: 19787 All of the functions that i've looked at seem to only extract parts from Intervals. What I need to do is to format the interval. For instance, I have a Interval with the value 1 day 07:57:52. I would like that in HH:MM:SS. So in the example the output would be 31:57:52. How can this be done?