Display of TIMESTAMP in 7.2 - Mailing list pgsql-hackers

From Alessio Bragadini
Subject Display of TIMESTAMP in 7.2
Date
Msg-id 1012911566.25180.522.camel@iris
Whole thread Raw
Responses Re: Display of TIMESTAMP in 7.2
Re: Display of TIMESTAMP in 7.2
List pgsql-hackers
Hi all,
starting with 7.2, now() returns a time with milliseconds. If extracted
from the db and displayed verbatim, it shows up as
'2002-02-05 10:59:36.717176+02'.

Unfortunately, I have a lot of code that displays the date/time directly
from the db on a web page without any to_char transformation and now
that is quite harder to understand. Is there any way to have an implicit
formatting back that trims the milliseconds on a per-connection
variable?

-- 
Alessio F. Bragadini        alessio@albourne.com
APL Financial Services        http://village.albourne.com
Nicosia, Cyprus             phone: +357-22-755750

"It is more complicated than you think"    -- The Eighth Networking Truth from RFC 1925



pgsql-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: v7.2 rolled last night ...
Next
From: Brian Bruns
Date:
Subject: DRDA, network protocol, and documentation