Re: Interval Precision

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Jake Stride <nsuk(at)users(dot)sourceforge(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Interval Precision
Date: 2005-04-08 19:21:48
Message-ID: 20050408192148.GA8986@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Apr 08, 2005 at 19:52:00 +0100,
Jake Stride <nsuk(at)users(dot)sourceforge(dot)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.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Bruno Wolff III 2005-04-08 19:37:48 Re: Interval Precision
Previous Message Jake Stride 2005-04-08 19:17:45 Re: Interval Precision