Re: Thoroughly confused about time zones - Mailing list pgsql-general

From Scott Ribe
Subject Re: Thoroughly confused about time zones
Date
Msg-id CB170368-2F7D-4AF0-8AE3-BD3EC36D9F78@elevated-dev.com
Whole thread Raw
In response to Re: Thoroughly confused about time zones  ("Rob Richardson" <Rob.Richardson@rad-con.com>)
List pgsql-general
On Feb 28, 2011, at 8:18 AM, Rob Richardson wrote:

> But when I tried this:
>
> select cast (extract(epoch from ('2010-3-14 12:00'::timestamptz - '2010-3-13 12:00'::timestamptz)) as integer) / 60 /
60
>
> I got 23, showing that even if I did not specify what time zone I’m talking about, I got the correct answer.

You didn't specify the time zone, so it used your local time zone info--but not just your current offset from UTC,
ratherthe offsets from UTC at the dates/times specified. 

--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





pgsql-general by date:

Previous
From: Rob Sargent
Date:
Subject: Re: Permission denied when inserting
Next
From: Vick Khera
Date:
Subject: Re: Permission denied when inserting