Re: Timestamp, fractional seconds problem

From: Laurette Cisneros <laurette(at)nextbus(dot)com>
To: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timestamp, fractional seconds problem
Date: 2001-10-04 16:56:10
Message-ID: Pine.LNX.4.33.0110040955570.30674-100000@visor.corp.nextbus.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc

This is very good news. Thanks to all for the response.

L.
On Thu, 4 Oct 2001, Karel Zak wrote:

> On Wed, Oct 03, 2001 at 05:02:59PM -0700, Laurette Cisneros wrote:
>
> > A work around for display might be to use to_char().
>
> In 7.2 is possible use millisecond / microsecond format:
>
> # select to_char(now()+'2s 324 ms'::interval, 'HH:MM:SS MS');
> to_char
> --------------
> 10:10:59 324
> (1 row)
>
> # select to_char(now()+'2s 324 ms 10 microsecon'::interval, 'HH:MM:SS US');
> to_char
> -----------------
> 10:10:03 324010
> (1 row)
>
> Karel
>
>

--
Laurette Cisneros
(510) 420-3137
NextBus Information Systems, Inc.
www.nextbus.com
Passenger Information Everywhere

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Barry Lind 2001-10-04 17:36:26 Re: [HACKERS] Timestamp, fractional seconds problem
Previous Message Marc G. Fournier 2001-10-04 16:08:07 Re: CVS changes

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2001-10-04 17:36:26 Re: [HACKERS] Timestamp, fractional seconds problem
Previous Message Heitzso 2001-10-04 14:09:12 Re: are \r \n and \t legal in