| От | Tom Lane |
|---|---|
| Тема | Re: to_date/to timestamp going to BC |
| Дата | |
| Msg-id | 11453.1002143642@sss.pgh.pa.us обсуждение |
| Ответ на | to_date/to timestamp going to BC (jason.servetar@ccgenesis.com) |
| Ответы |
Re: to_date/to timestamp going to BC
|
| Список | pgsql-sql |
jason.servetar@ccgenesis.com writes:
> Can someone tell me if this is a bug with the date functions or am I using
> them incorrectly?
I get the right thing when I use the right format:
regression=# select dt, to_timestamp(dt, 'FMMonth dd, yyyy') from test_date; dt | to_timestamp
----------------+------------------------March 11, 1997 | 1997-03-11 00:00:00-05
(1 row)
However, I'd agree that this shows a lack of robustness in to_timestamp;
it's not objecting to data that doesn't match the format.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера