Re: ecmascript 5 DATESTYLE

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: ecmascript 5 DATESTYLE
Дата
Msg-id CAFj8pRDpt23G2iusx_e1GBjF=9CNBQ4Y=w432NUCm2UOFFQ1uw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ecmascript 5 DATESTYLE  (ben hockey <neonstalwart@gmail.com>)
Ответы Re: ecmascript 5 DATESTYLE  (ben hockey <neonstalwart@gmail.com>)
Список pgsql-hackers
2011/12/6 ben hockey <neonstalwart@gmail.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...

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: ben hockey
Дата:
Сообщение: Re: ecmascript 5 DATESTYLE
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: ecmascript 5 DATESTYLE