Re: Date & Time with time zone

Поиск
Список
Период
Сортировка
От Wei Wei
Тема Re: Date & Time with time zone
Дата
Msg-id 20060411003254.93E0CCA0DD@ws7-4.us4.outblaze.com
обсуждение исходный текст
Ответ на Date & Time with time zone  ("Wei Wei" <wei725@lycos.com>)
Ответы Re: Date & Time with time zone  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Thanks for your reply, Martijn. And see below.

> On Sun, Apr 09, 2006 at 12:07:50PM -0800, Wei Wei wrote:
> > I try to understand how the D&T information is stored/presented
> > in PG. In the application, the data is reported as
> >
> > Sun Apr 09 12:40:52 PDT 2006 - Pacific Standard Time
> >
> > But, in the DB, it is stated as
> >
> > 2006-04-09 14:40:53.093-07
> >
> > It doesn't seen right to me. Both are on the same box and the
> > date column is with time zone.
>
> Read the docs for the exact details but the gist of it is that
> PostgreSQL always displays dates to you in your own timezone (or
> whatever is configured with "set timezone" anyway).
>

I already read the document. But, I haven't found any related information.

> timestamp with timezone represents an instant in time, which may appear
> as different actual values depending on which timezone you're talking
> about.
>
I am not sure that I can follow you above. Someone told me that the timezone is always set as what it is with DB
regardlessthe application nor the user choice. 

> timestamp without timezone is a timestamp that appears the same to
> everyone, all the time. The uses for this are not entirely clear, given
> you can't represent the overlaps or gaps created by daylight savings
> shifts. However, sometimes this is what you want.
>

It doesn't seem to be the way as you describe above. Before the Summer Saving Time, the all timestamp with time zone
datashown in the DB with "-8" ending. After the SST, they are shown with "-7" ending. 

--
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


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

Предыдущее
От: "Just Someone"
Дата:
Сообщение: Re: How to find the latest (partial) WAL file
Следующее
От: "Thomas F. O'Connell"
Дата:
Сообщение: Re: How to find the latest (partial) WAL file