Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLgvM-0000Ay-5k for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 02:56:04 +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 1eLgvL-0007V3-0D for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 02:56:03 +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 1eLgvK-0007Uo-EW for pgsql-general@lists.postgresql.org; Mon, 04 Dec 2017 02:56:02 +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 1eLgvD-0007VR-Lr for pgsql-general@lists.postgresql.org; Mon, 04 Dec 2017 02:56:01 +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 vB42tr8u021941; Sun, 3 Dec 2017 21:55:53 -0500 From: Tom Lane To: Bharanee Rathna cc: pgsql-general@lists.postgresql.org Subject: Re: ISO8601 vs POSIX offset clarification In-reply-to: References: Comments: In-reply-to Bharanee Rathna message dated "Mon, 04 Dec 2017 13:39:43 +1100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21939.1512356153.1@sss.pgh.pa.us> Date: Sun, 03 Dec 2017 21:55:53 -0500 Message-ID: <21940.1512356153@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bharanee Rathna writes: > the documentation around how numeric offsets are parsed from strings is a > bit confusing, are they supposed to be treated as ISO8601 or POSIX ? Our documentation about this says clearly that Postgres considers offsets to be ISO (positive-east-of-Greenwich) everywhere except in POSIX-style time zone names. > The Table 8-12. Time Zone Input section at > https://www.postgresql.org/docs/9.3/static/datatype-datetime.html seems to > imply that numeric offsets would be treated as ISO8601. How do you read an entry such as -8:00 | ISO-8601 offset for PST as being in any way vague about which convention the "-8" is read in? regards, tom lane