Re: DateTime fields

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DateTime fields
Дата
Msg-id 19498.962059293@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DateTime fields  ("Dale Anderson" <danderso@crystalsugar.com>)
Ответы Re: DateTime fields
Список pgsql-general
"Dale Anderson" <danderso@crystalsugar.com> writes:
>     I noticed that the DateTime fields and the to_timestamp function
> interpret 12 PM as 00:00 and 12 AM as 12:00.

Huh?

regression=# select '2000-06-12 12:00 am' ::datetime;
        ?column?
------------------------
 2000-06-12 00:00:00-04
(1 row)

regression=# select '2000-06-12 12:00 pm' ::datetime;
        ?column?
------------------------
 2000-06-12 12:00:00-04
(1 row)

Looks fine to me.
Could you be more precise about what you're trying to do?

            regards, tom lane

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

Предыдущее
От: "Len Morgan"
Дата:
Сообщение: Re: Conversion from MS Access to Postgresql
Следующее
От: Andrew McMillan
Дата:
Сообщение: Re: Conversion from MS Access to Postgresql