Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbccV-0003iX-DF for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Oct 2013 20:44:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VbccU-0000Gd-89 for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Oct 2013 20:44:02 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbccT-0000GW-6I for pgsql-bugs@postgresql.org; Wed, 30 Oct 2013 20:44:01 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbccQ-0001UT-PA for pgsql-bugs@postgresql.org; Wed, 30 Oct 2013 20:44:00 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VbccP-0002bE-VP for pgsql-bugs@postgresql.org; Wed, 30 Oct 2013 13:43:57 -0700 Date: Wed, 30 Oct 2013 13:43:57 -0700 (PDT) From: David Johnston To: pgsql-bugs@postgresql.org Message-ID: <1383165837967-5776440.post@n5.nabble.com> In-Reply-To: <375B948D2EECB74DBF35610C8581471A7024F8@WgExch09.wgenhq.net> References: <375B948D2EECB74DBF35610C8581471A7024F8@WgExch09.wgenhq.net> Subject: Re: Extract (week from date ) bug. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 4.5 (++++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Ubold Hooper wrote > Why is extract(week from date('2011-01-01')) not identified as week 1? Because "week" uses the ISO calendar and Week 1, 2011 begins on Monday, January 3rd. http://www.postgresql.org/docs/9.3/interactive/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Extract-week-from-date-bug-tp5776436p5776440.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs