Re: BUG #1058: unexpected output when using timezone() and to_char()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1058: unexpected output when using timezone() and to_char()
Дата
Msg-id 1674.1074705522@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1058: unexpected output when using timezone() and to_char()  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Список pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> however,
> select to_char(timezone('PST',CURRENT_TIMESTAMP),' Day Mon DD YYYY
> HH24:MI:SS TZ');
> returns:

>   Wednesday Jan 21 2004 07:07:44

> Notice the Time zone field (specified by 'TZ' in the to_char) is missing
> from the output.

This isn't a bug.  The timezone() function returns datatype timestamp
without time zone, so there is nothing that to_char could usefully
print.

            regards, tom lane

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

Предыдущее
От: Roman Avdeenko
Дата:
Сообщение: Readline lib configure error. Help
Следующее
От: Craig Ruff
Дата:
Сообщение: Re: 7.3.5 initdb failure on Irix 6.5.18