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

Поиск
Список
Период
Сортировка
От Dan Langille
Тема Re: [GENERAL] Are we backwards on the sign of timezones?
Дата
Msg-id 3F067B47.16712.71B0D88A@localhost
обсуждение исходный текст
Ответ на Re: [GENERAL] Are we backwards on the sign of timezones?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 4 Jul 2003 at 23:22, Tom Lane wrote:

> "Dan Langille" <dan@langille.org> 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.

select now(), extract(timezone_hour from now());
              now              | date_part
-------------------------------+-----------
 2003-07-05 23:15:09.760771+12 |       -12

Yep, I'd say that should return +12, not -12.
--
Dan Langille : http://www.langille.org/


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Are we backwards on the sign of timezones?
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: How to submit Tsearch V2 ?