Formatting an Interval

From: Jamison Roberts <jamisonroberts(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Formatting an Interval
Date: 2004-12-31 16:37:32
Message-ID: 238e52230412310837183fb730@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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?

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2004-12-31 19:41:18 Re: Formatting an Interval
Previous Message Nathan Pickett 2004-12-30 15:01:48 Making a prepared statement in a stored procedure