Re: ISO8601 vs POSIX offset clarification

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ISO8601 vs POSIX offset clarification
Дата
Msg-id 17467.1512399508@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ISO8601 vs POSIX offset clarification  (Bharanee Rathna <deepfryed@gmail.com>)
Список pgsql-general
Bharanee Rathna <deepfryed@gmail.com> writes:
> To be more specific, I expected the output of both these queries to be the
> same.
> # select '2017-12-01 11:00:00 +11:00'::timestamp with time zone at time
> zone '+11:00';
> # select '2017-12-01 11:00:00 +11:00'::timestamp with time zone at time
> zone 'Australia/Melbourne';

The +11 in your timestamp input value is per ISO convention, but the
argument of AT TIME ZONE is a zone name, so it follows the POSIX
convention if it's numeric.

            regards, tom lane


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

Предыдущее
От: Nicola Contu
Дата:
Сообщение: Re: Centos 6.9 and centos 7
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Centos 6.9 and centos 7