Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLsCY-0006D5-8a for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 14:58:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLsCX-00039z-K1 for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 14:58:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eLsCX-00039q-9O for pgsql-general@lists.postgresql.org; Mon, 04 Dec 2017 14:58:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eLsCV-0006Q5-2A for pgsql-general@lists.postgresql.org; Mon, 04 Dec 2017 14:58:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vB4EwSSx017468; Mon, 4 Dec 2017 09:58:28 -0500 From: Tom Lane To: Bharanee Rathna cc: pgsql-general@lists.postgresql.org Subject: Re: ISO8601 vs POSIX offset clarification In-reply-to: References: <21940.1512356153@sss.pgh.pa.us> Comments: In-reply-to Bharanee Rathna message dated "Mon, 04 Dec 2017 14:03:43 +1100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17466.1512399508.1@sss.pgh.pa.us> Date: Mon, 04 Dec 2017 09:58:28 -0500 Message-ID: <17467.1512399508@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bharanee Rathna writes: > To be more specific, I expected the output of both these queries to be the > same. > # select '2017-12-01 11:00:00 +11:00'::timestamp with time zone at time > zone '+11:00'; > # select '2017-12-01 11:00:00 +11:00'::timestamp with time zone at time > zone 'Australia/Melbourne'; The +11 in your timestamp input value is per ISO convention, but the argument of AT TIME ZONE is a zone name, so it follows the POSIX convention if it's numeric. regards, tom lane