Pope Gregory XIII improved the accuracy of the Julian calendar by dropping the leap year every century and adding it back every 400 years.
gc = new GregorianCalendar(); gc.setLenient( false ); /* Bug only manifests if lenient set false */ gc.set( 2001, 1, 1, 1, 0, 0 ); nYear = gc.get ( Calendar.YEAR ); /* throws exception */The bug disappears at 7AM on 2001/01/01 for MST.
This page is posted |
http://mindprod.com/jgloss/gregoriancalendar.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\gregoriancalendar.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[18.117.71.239] |
| |
Feedback |
You are visitor number | |