Re: to_timestamp busted?

Поиск
Список
Период
Сортировка
От Eric G. Miller
Тема Re: to_timestamp busted?
Дата
Msg-id 20010625000646.A13882@calico.local
обсуждение исходный текст
Ответ на to_timestamp busted?  ("Eliel Mamousette" <eliel@panix.com>)
Список pgsql-general
On Mon, Jun 25, 2001 at 02:03:55AM -0400, Eliel Mamousette wrote:
> I have gotten some interesting results in testing out date
> conversions using to_timestamp.
>
> Given the query:
>
> [NB: log_date and log_time are both varchar fields.
> Yes I am yet another person parsing web server logs....]
>
[snip]
> But using:
>
> SELECT to_timestamp(log_date || ' ' ||  log_time,
>         'YYYY-MM-DD HH24:MM:SS'),

Take a hard look at your format specification.  Hmm, months and minutes
are the same. Maybe you want "MI" for minutes?

--
Eric G. Miller <egm2@jps.net>

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

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: to_timestamp busted?
Следующее
От: "Eliel Mamousette"
Дата:
Сообщение: RE: to_timestamp busted?