| From: | David Garamond <lists(at)zara(dot)6(dot)isreserved(dot)com> |
|---|---|
| To: | Postgres general mailing list <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: AT TIME ZONE: "convert"? |
| Date: | 2004-11-01 13:02:33 |
| Message-ID: | 418633E9.6060809@zara.6.isreserved.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Martijn van Oosterhout | 2004-11-01 13:10:25 | Re: AT TIME ZONE: "convert"? |
| Previous Message | David Garamond | 2004-11-01 12:58:06 | AT TIME ZONE: "convert"? |