Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 56147 invoked from network); 6 Feb 2003 12:06:53 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 6 Feb 2003 12:06:53 -0000 Received: (qmail 23857 invoked by uid 97); 6 Feb 2003 12:08:20 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 23850 invoked from network); 6 Feb 2003 12:08:20 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 6 Feb 2003 12:08:20 -0000 Received: (qmail 54704 invoked by uid 500); 6 Feb 2003 12:06:39 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 54689 invoked from network); 6 Feb 2003 12:06:39 -0000 Received: from services01.hh02.uptime.de (HELO mail01.hh02.uptime.de) (62.67.60.3) by daedalus.apache.org with SMTP; 6 Feb 2003 12:06:39 -0000 Received: (qmail 5399 invoked from network); 6 Feb 2003 12:06:37 -0000 Received: from unknown (HELO server01.hh.uptime.de) (postmaster@uptime-isc.de@217.6.61.26) by services01.hh02.uptime.de with SMTP; 6 Feb 2003 12:06:37 -0000 content-class: urn:content-classes:message Subject: RE: bug in java api? (ot) Date: Thu, 6 Feb 2003 13:06:33 +0100 MIME-Version: 1.0 Message-ID: Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable X-MS-Has-Attach: X-MS-TNEF-Correlator: X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Thread-Topic: bug in java api? (ot) Thread-Index: AcLN1i4rbe9yXRRYSC2BtE3a54ypzQAAMT6A From: "Ralph Einfeldt" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N In gregorian calendar aplies following rule isLeapYear =3D (year mod 4 =3D 0) and ((not year mod 100 =3D 0) or (year = mod 400 =3D 0)) =20 2000 mod 4 =3D 0 -> true not 2000 mod 100 =3D 0 -> false 2000 mod 400 =3D 0 -> true true and (false or true) -> true > -----Original Message----- > From: Felipe Schnack [mailto:felipes@ritterdosreis.br] > Sent: Thursday, February 06, 2003 12:50 PM > To: Tomcat Users List > Subject: bug in java api? (ot) >=20 >=20 > Take a look at the following code >=20 > GregorianCalendar cal =3D (GregorianCalendar)Calendar.getInstance(); > cal.set(2000, Calendar.FEBRUARY, 1); > System.out.println(cal.isLeapYear(2000)); >=20 > Shouldn't "false" be printed on the screen? I see "true" here in my > machine :-) >=20 > --=20 >=20 > Felipe Schnack > Analista de Sistemas > felipes@ritterdosreis.br > Cel.: (51)91287530 > Linux Counter #281893 >=20 > Centro Universit=E1rio Ritter dos Reis > http://www.ritterdosreis.br > ritter@ritterdosreis.br > Fone/Fax.: (51)32303341 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org