Re: Problem with the to_timestamp function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with the to_timestamp function
Дата
Msg-id 27257.1201739170@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with the to_timestamp function  (Luca Clementi <lclement@ucsd.edu>)
Ответы Re: Problem with the to_timestamp function  (Michael Glaesemann <grzm@seespotcode.net>)
Re: Problem with the to_timestamp function  (Luca Clementi <lclement@ucsd.edu>)
Список pgsql-sql
Luca Clementi <lclement@ucsd.edu> writes:
> It seems that the to_timestamp does not work properly in this case, 
> when it comes to parsing the hours.

to_timestamp() is not very robust if the input doesn't exactly match
what it expects for the format string.  I'm not sure if that's the
issue here, but have you tried just casting the string to timestamp?
That would use the standard timestamp input converter, which is
pretty flexible.

(BTW, there is definitely 0 hope of recognizing a timezone name that's
written in Chinese characters, unless maybe you fool around with the
timezone-abbreviations configuration file.)
        regards, tom lane


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

Предыдущее
От: Luca Clementi
Дата:
Сообщение: Problem with the to_timestamp function
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Problem with the to_timestamp function