tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: bug in java api? (ot)
Date Thu, 06 Feb 2003 12:09:33 GMT
Check your calendar first ...
http://www.earth.com/calendar?2%2F2000

And a FAQ (thanks google!):
http://world.std.com/~dpbsmith/leapyearfaq.txt

Y2K was a leap year.

-Tim

Felipe Schnack wrote:
>   Take a look at the following code
> 
> GregorianCalendar cal = (GregorianCalendar)Calendar.getInstance();
> cal.set(2000, Calendar.FEBRUARY, 1);
> System.out.println(cal.isLeapYear(2000));
> 
>   Shouldn't "false" be printed on the screen? I see "true" here in my
> machine :-)
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message