Re: [GENERAL] Are we backwards on the sign of timezones?

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: [GENERAL] Are we backwards on the sign of timezones?
Дата
Msg-id
2172.1057375331@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Are we backwards on the sign of timezones? Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] Are we backwards on the sign of timezones? elein <elein@varlena.com>
Re: [GENERAL] Are we backwards on the sign of timezones? "Dan Langille" <dan@langille.org>
Re: [GENERAL] Are we backwards on the sign of timezones? "Dan Langille" <dan@langille.org>
Re: [GENERAL] Are we backwards on the sign of timezones? Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] Are we backwards on the sign of timezones? "Dan Langille" <dan@langille.org>
Re: Are we backwards on the sign of timezones? "scott.marlowe" <scott.marlowe@ihs.com>
"Dan Langille"  writes:
> Now that my NZ server is up and running:
> template1=# select now();
>  2003-07-05 12:47:15.444535+12

> That doesn't look backwards to me.

Try EXTRACT(timezone_hour from now());

The timestamp I/O routines are using what I think is the correct sign.
EXTRACT() is at variance.  So is SET TIMEZONE with a numeric offset.

			regards, tom lane
В списке pgsql-hackers по дате отправления
От: Joe Conway
Дата:
От: Dan Langille
Дата:
FAQ