Article View: borland.public.jbuilder.java.language
Article #7395Re: Calendar.getMaximum(WEEK_OF_MONTH) for months with 6 weeks
From: John McGrath TeamB
Date: Tue, 26 Jun 2001 07:06
Date: Tue, 26 Jun 2001 07:06
25 lines
1611 bytes
1611 bytes
On Mon, 25 Jun 2001 13:59:20 +0200, Tobias Kretschmar wrote:
> Hello,
>
> 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
>
> Where I am wrong?
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.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.15a1f494828087d598a2df@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<p297h9.e3o.ln@hecker.oderwitz.de>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 00:09:39 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.language Subject: Re: Calendar.getMaximum(WEEK_OF_MONTH) for months with 6 weeks Date: Tue, 26 Jun 2001 03:06:40 -0400 Message-ID: <MPG.15a1f494828087d598a2df@forums.borland.com> References: <p297h9.e3o.ln@hecker.oderwitz.de> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 993539198 209.92.40.60 (26 Jun 2001 00:06:38 -0700) Lines: 25 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews