Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

How can this be done?


pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group