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
Ответ на
Список
Дерево обсуждения
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>
On 4 Jul 2003 at 23:22, Tom Lane wrote:

> "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.

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
Дата:
От: Oleg Bartunov
Дата:
Сообщение: Re: How to submit Tsearch V2 ?
FAQ