AM/PM times? Am I going crazy?

Поиск
Список
Период
Сортировка
От Philip Hallstrom
Тема AM/PM times? Am I going crazy?
Дата
Msg-id Pine.BSF.4.21.0008081124070.70120-100000@illiad.adhesivemedia.com
обсуждение исходный текст
Ответы Re: AM/PM times? Am I going crazy?  (Karel Zak <zakkr@zf.jcu.cz>)
How to create an index using a function???  (Philip Hallstrom <philip@adhesivemedia.com>)
Список pgsql-general
Hi -
    It appears that postgres considers 1pm to really be 1am???  The
following is occuring on 7.0.2.  Am I missing something obvious?


devloki=>  select CURRENT_TIMESTAMP;
       timestamp
------------------------
 2000-08-08 11:23:29-07
(1 row)

devloki=> select TO_CHAR(timestamp '2000-08-08 13:00:00-07', 'am');
 to_char
---------
 am
(1 row)

devloki=> select TO_CHAR(timestamp '2000-08-08 14:00:00-07', 'am');
 to_char
---------
 pm
(1 row)



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

Предыдущее
От: Craig Anderson
Дата:
Сообщение: Postgres Authentication Problems
Следующее
От: Karel Zak
Дата:
Сообщение: Re: AM/PM times? Am I going crazy?