Article View: borland.public.jbuilder.java.language
Article #7303Re: Calendar.getMaximum(WEEK_OF_MONTH) for months with 6 weeks
From: Tobias Kretschmar
Date: Tue, 26 Jun 2001 08:35
Date: Tue, 26 Jun 2001 08:35
21 lines
1859 bytes
1859 bytes
John McGrath [TeamB] wrote: >> in months with 6 weeks (for example May 2004) >> Calendar.getMaximum(WEEK_OF_MONTH) == 5 >> IMO that should equals to 6. Here in GermanyfirstDayOfWeek == MONDAY > I always get 6 for the maximum week of the month. The value returned > is not dependant on the current date value loaded into the Calendar. > It *always* returns 6 for me. I tried running with a locale of DE/de, > and I get the same results, except (of course) that it speaks German. Thank you for your response. Sorry my posting was not correct. My problem was getActualMaximum not getMaximum. And I didn't realized that Calendar.getActualMaximum depends on getMinimalDaysInFirstWeek. So the result of getActualMaximum was confusing. for me. And first I notized that in May 2004. Tobias.
Technical Details
Message-ID:
<pgh9h9.6vd.ln@hecker.oderwitz.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mailReferences:
<p297h9.e3o.ln@hecker.oderwitz.de> <MPG.15a1f494828087d598a2df@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,678458e51412a0ed X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-26 01:46:15 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Tobias Kretschmar <to-bik@t-online.de> Newsgroups: borland.public.jbuilder.java.language Subject: Re: Calendar.getMaximum(WEEK_OF_MONTH) for months with 6 weeks Date: Tue, 26 Jun 2001 10:35:36 +0200 Organization: T-Online Lines: 21 Message-ID: <pgh9h9.6vd.ln@hecker.oderwitz.de> References: <p297h9.e3o.ln@hecker.oderwitz.de> <MPG.15a1f494828087d598a2df@forums.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 993545092 02 398 3SwDSOGS-A+Sd 010626 08:44:52 X-Complaints-To: abuse@t-online.com X-Sender: 520058946937-0001@t-dialin.net User-Agent: KNode/0.4