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: 238e52230412310837183fb730@mail.gmail.com (view raw or flat)
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

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-2014 The PostgreSQL Global Development Group