Re: Interval Precision - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: Interval Precision
Date
Msg-id 20050408192148.GA8986@wolff.to
Whole thread Raw
In response to Interval Precision  (Jake Stride <nsuk@users.sourceforge.net>)
Responses Re: Interval Precision  (Jake Stride <nsuk@users.sourceforge.net>)
List pgsql-novice
On Fri, Apr 08, 2005 at 19:52:00 +0100,
  Jake Stride <nsuk@users.sourceforge.net> wrote:
> Hi,
>
> I'm trying to force the precision on an interval so that I can store
> hours and minutes and then when I do a select just see the hours and
> minutes. i.e.:
>
> 01:00 instead of 01:00:00
>
> is the possible as no matter what I set the precision to I always get
> the extra seconds. Is this possible?

You can use the to_char function to format the output.

pgsql-novice by date:

Previous
From: Jake Stride
Date:
Subject: Interval Precision
Next
From: Jake Stride
Date:
Subject: Re: Interval Precision