pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Johnston <polobo@yahoo.com>
To: pgsql-bugs@postgresql.org
Subject: Re: Extract (week from date ) bug.
Date: Wed, 30 Oct 2013 13:43:57 -0700 (PDT)
Message-ID: <1383165837967-5776440.post@n5.nabble.com> (raw)
In-Reply-To: <375B948D2EECB74DBF35610C8581471A7024F8@WgExch09.wgenhq.net>
References: <375B948D2EECB74DBF35610C8581471A7024F8@WgExch09.wgenhq.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)

Message-ID: <1383165837967-5776440.post@n5.nabble.com>
Permalink:  ../1383165837967-5776440.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1383165837967-5776440.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: polobo@yahoo.com
  Subject: Re: Extract (week from date ) bug.
  In-Reply-To: <1383165837967-5776440.post@n5.nabble.com>
  References: <375B948D2EECB74DBF35610C8581471A7024F8@WgExch09.wgenhq.net> <1383165837967-5776440.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox