From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | ben hockey <neonstalwart(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Mike Fowler <mike(at)mlfowler(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: ecmascript 5 DATESTYLE |
Date: | 2011-12-06 20:53:05 |
Message-ID: | CAFj8pRDpt23G2iusx_e1GBjF=9CNBQ4Y=w432NUCm2UOFFQ1uw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2011/12/6 ben hockey <neonstalwart(at)gmail(dot)com>:
>
> On 12/6/2011 3:20 PM, Pavel Stehule wrote:
>>
>>
>> I am for ECMA datestyle
>>
>> it is there but just is not public, if I remember well
>>
>> Theoretically some custom output/input transform routine can be very
>> interesting - for domains, for boolean type - but on second hand - the
>> usage of this feature is minimal and there is risk for less advanced
>> users - so ECMA datestyle is very adequate solution.
>>
>> Regards
>>
>> Pavel
>>
> i don't particularly need anything other than ECMA datestyle - i was just
> under the impression that a more generic solution was preferred. so, ECMA
> is enough to stop me from making any more noise about this.
>
> pavel, is there a way i can use this currently? if not, would it take much
> effort to make this public?
I am not sure, if this patch is 100% correct
but it does something
the name is not ECMA but XSD - I hope, so both formats are same
postgres=# set datestyle TO 'XSD';
SET
postgres=# select current_timestamp;
now
──────────────────────────────────
2011-12-06T21:50:34.142933+01:00
(1 row)
postgres=# select '2011-12-06T22:46:53.455866+01:00'::timestamp;
timestamp
────────────────────────────
2011-12-06T22:46:53.455866
(1 row)
but maybe this will be some more, if XSD format is not exact ECMA
Regards
Pavel
>
> thanks,
>
> ben...
Attachment | Content-Type | Size |
---|---|---|
xsd_style.patch | text/x-patch | 787 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2011-12-06 20:58:41 | Re: ecmascript 5 DATESTYLE |
Previous Message | ben hockey | 2011-12-06 20:26:12 | Re: ecmascript 5 DATESTYLE |