Re: Timestamp to time_t
От | Kevin Grittner |
---|---|
Тема | Re: Timestamp to time_t |
Дата | |
Msg-id | 4AAE3746020000250002AF0C@gw.wicourts.gov обсуждение исходный текст |
Ответ на | Timestamp to time_t (Scott Mohekey <scott.mohekey@telogis.com>) |
Ответы |
Re: Timestamp to time_t
|
Список | pgsql-hackers |
Scott Mohekey <scott.mohekey@telogis.com> wrote: > What is the relationship between Timestamp and TimestampTz? TIMESTAMP WITHOUT TIME ZONE does not identify a moment in time without first associating it with a time zone. When Daylight Saving Time ends, the same TIMESTAMP WITHOUT TIME ZONE values will recur, without any way to distinguish them from those from the previous hour. The only use case I have been able to think of, personally, for TIMESTAMP WITHOUT TIME ZONE is a release date for, say a Harry Potter book or World of Warcraft expansion set, where as the given moment arrives in each time zone, stores in that time zone can begin to sell the given work. I suspect there's probably one or two other valid uses, but most uses are just mistakes, waiting to be exposed. For almost every reasonable use, the right data type is TIMESTAMP WITH TIME ZONE. -Kevin
В списке pgsql-hackers по дате отправления: