Re: DateStyle (was Re: Per-database/schema settings) - Mailing list pgsql-hackers

From Karel Zak
Subject Re: DateStyle (was Re: Per-database/schema settings)
Date
Msg-id Pine.LNX.3.96.1000707152154.29348A-100000@ara.zf.jcu.cz
Whole thread Raw
In response to DateStyle (was Re: Per-database/schema settings)  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers

On Thu, 6 Jul 2000, Peter Eisentraut wrote:

> Thomas Lockhart writes:
> 
> > I've been pretty resistant to having a fully-tailorable native output
> > capability, since it would be possible to generate date strings which
> > can not be correctly interpreted on input.
> 
> Good point. Let them use to_char().
> 
Small note, to_char() has good friend to_timestamp() and this second
routine must allow interpret all output from to_char() to PG internal
datetype.

test=# select to_timestamp( to_char( now(), '"perverse date/time: "Y,YYY  
FMMonth-DD HH24:MI:SS'), '"perverse date/time: "Y,YYY FMMonth-DD
HH24:MI:SS') = now();?column?
----------t
(1 row)  
                    Karel



pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Per-database/schema settings
Next
From: eisentrp@csis.gvsu.edu
Date:
Subject: Re: PostgreSQL & the BSD License