Re: AT TIME ZONE: "convert"?
| От | David Garamond |
|---|---|
| Тема | Re: AT TIME ZONE: "convert"? |
| Дата | |
| Msg-id | 418633E9.6060809@zara.6.isreserved.com обсуждение исходный текст |
| Ответ на | AT TIME ZONE: "convert"? (David Garamond <lists@zara.6.isreserved.com>) |
| Ответы |
Re: AT TIME ZONE: "convert"?
|
| Список | pgsql-general |
Sorry, hit Sent too early...
David Garamond wrote:
> The Postgres manual says:
>
> The AT TIME ZONE construct allows conversions of time stamps to
> different time zones.
>
> I'd guess most people would think what's meant here is something like
> "unit conversion", and that the timestamp value stays the same (much
> like 2 feet becomes 24 inches when it's being "converted"). But:
>
> # SELECT NOW() = NOW() AT TIME ZONE 'UTC';
> ?column?
> ----------
> f
> (1 row)
Compare with:
# select timestamptz '2004-11-01 12:00:00-05' =
timestamptz '2004-11-01 17:00:00-00';
?column?
----------
t
(1 row)
The question is: does AT TIME TIME ZONE already do what it's supposed to
do currently?
--
dave
В списке pgsql-general по дате отправления: