Timestamp/Timezone - does this make sense?

Поиск
Список
Период
Сортировка
Искать
От
Mike Harding
Тема
Timestamp/Timezone - does this make sense?
Дата
Msg-id
1171337909.59358.17.camel@mvh.et.com
Список
Дерево обсуждения
Timestamp/Timezone - does this make sense? Mike Harding <mharding@edentreetech.com>
Re: Timestamp/Timezone - does this make sense? Tom Lane <tgl@sss.pgh.pa.us>
Re: Timestamp/Timezone - does this make sense? Ron Johnson <ron.l.johnson@cox.net>
Re: Timestamp/Timezone - does this make sense? Tom Lane <tgl@sss.pgh.pa.us>
Re: Timestamp/Timezone - does this make sense? Berend Tober <btober@ct.metrocast.net>
mvh=> set time zone 'UTC';
SET
mvh=> select now();
              now              
-------------------------------
 2007-02-13 03:37:35.660652+00
(1 row)

mvh=> select timestamp with time zone '2007-01-01' at time zone
'America/Los_Angeles';
      timezone       
---------------------
 2006-12-31 16:00:00
(1 row)

mvh=> select timestamp '2007-01-01' at time zone 'America/Los_Angeles';
timezone        
------------------------
 2007-01-01 08:00:00+00
(1 row)

Where does that extra 8 hours come from?


В списке pgsql-general по дате отправления
От: Bruce Momjian
Дата:
От: Shoaib Mir
Дата:
FAQ