https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17097754782014-05-06T16:54:48ZRuby Issue Tracking SystemRuby master - Bug #9809: Date.new(2000,1,1).cweek should == 1https://bugs.ruby-lang.org/issues/9809?journal_id=465752014-05-06T16:54:48Zzfben (Ben Zhu)benz303bb@gmail.com
<ul></ul><p>I see <a href="https://bugs.ruby-lang.org/issues/9372" class="external">https://bugs.ruby-lang.org/issues/9372</a></p>
<p>If this is not a bug, please close it, thank you.</p> Ruby master - Bug #9809: Date.new(2000,1,1).cweek should == 1https://bugs.ruby-lang.org/issues/9809?journal_id=465772014-05-06T17:21:24Zavit (Andrew Vit)andrew@avit.ca
<ul></ul><p>This looks like correct behaviour. From a previous issue <a class="issue tracker-1 status-6 priority-4 priority-default closed" title="Bug: Date function cweek reports innaccurately for the date December 30, 2013 (Rejected)" href="https://bugs.ruby-lang.org/issues/9372">#9372</a>:</p>
<p>A period of time of seven days within a calendar year, starting on a<br>
Monday and identified by its ordinal number within the year; the first<br>
calendar week of the year is the one that includes the first Thursday<br>
of that year.</p> Ruby master - Bug #9809: Date.new(2000,1,1).cweek should == 1https://bugs.ruby-lang.org/issues/9809?journal_id=465822014-05-07T00:17:15Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul> Ruby master - Bug #9809: Date.new(2000,1,1).cweek should == 1https://bugs.ruby-lang.org/issues/9809?journal_id=465832014-05-07T00:19:02Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Is duplicate of</strong> <i><a class="issue tracker-1 status-6 priority-4 priority-default closed" href="/issues/9372">Bug #9372</a>: Date function cweek reports innaccurately for the date December 30, 2013</i> added</li></ul> Ruby master - Bug #9809: Date.new(2000,1,1).cweek should == 1https://bugs.ruby-lang.org/issues/9809?journal_id=475532014-07-02T07:30:36Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Rejected</i></li></ul>