| От | Tim Landscheidt |
|---|---|
| Тема | Re: to_date function |
| Дата | |
| Msg-id | m3sk3vgeg2.fsf@passepartout.tim-landscheidt.de обсуждение |
| Ответ на | to_date function (Carlos Henrique Reimer <carlos.reimer@opendb.com.br>) |
| Список | pgsql-general |
Carlos Henrique Reimer <carlos.reimer@opendb.com.br> wrote: > I've a Linux box running postgresql 8.2.17 and facing some strange results > from the to_date function. > As you can see in the following tests the problem occurs when the template > used includes upper and lower case characters for the minute (Mi or mI). > Am I using the incorrect syntax or is it a bug? > [...] In general, the template patterns are case-sensitive (cf. "month" vs. "Month" vs. "MONTH"). So "mI" will probably be interpreted as a literal "m" and "I" meaning "last digit of ISO year" which isn't what you want. So use "MI" and be happy. Tim
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера