Re: CC Date format code defaults to current centry

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: CC Date format code defaults to current centry
Дата
Msg-id 200503140224.j2E2OXC14497@candle.pha.pa.us
обсуждение исходный текст
Ответ на CC Date format code defaults to current centry  (Joe Brown <joebrown@rclooke.com>)
Ответы Re: CC Date format code defaults to current centry  (Andre Maasikas <andre@abs.ee>)
Список pgsql-bugs
Joe Brown wrote:
> joe=> select to_date('19450323','CCYYMMDD');
>   to_date
> ------------
>  2045-03-23
> (1 row)
>
> joe=> select to_date('19450323','YYYYMMDD');
>   to_date
> ------------
>  1945-03-23
> (1 row)
>
> I thought the former would be "more" correct.  But it seems I am mistaken.

Uh, 1945 _is_ in the 20th century, but I can see how it is confusing.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Joe Brown
Дата:
Сообщение: CC Date format code defaults to current centry
Следующее
От: Neil Conway
Дата:
Сообщение: Re: BUG #1540: Enhancement request: 'ambiguous' column reference