Re: Timestamp, fractional seconds problem - Mailing list pgsql-hackers

From Karel Zak
Subject Re: Timestamp, fractional seconds problem
Date
Msg-id 20011004110126.A20096@zf.jcu.cz
Whole thread Raw
In response to Timestamp, fractional seconds problem  (Laurette Cisneros <laurette@nextbus.com>)
Responses Re: Timestamp, fractional seconds problem
List pgsql-hackers
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 

-- Karel Zak  <zakkr@zf.jcu.cz>http://home.zf.jcu.cz/~zakkr/C, PostgreSQL, PHP, WWW, http://docs.linux.cz,
http://mape.jcu.cz


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: My last ECPG commit
Next
From: Lincoln Yeoh
Date:
Subject: Re: Feature suggestion: Postgresql binding to one