GregorianCalendar : Java Glossary

Sun’s replacement for the brain-damaged and now deprecated Date class. GregorianCalendar needs both time and date set before it will function properly, even for date-only functions.

Pope Gregory XIII improved the accuracy of the Julian calendar by dropping the leap year every century and adding it back every 400 years.

When you use the default new GregorianCalendar, you specify the date and time in the current time zone and locale and daylight saving, not UTC (Coordinated Universal Time/Temps Universel Coordonné).

java.util.GregorianCalendar Gotchas

java.util.GregorianCalendar has far fewer bugs and gotchas than the old java.util.Date class but it is still no picnic.

Learning More

Oracle’s Javadoc on GregorianCalendar class : available:

available on the web at:
ClustrMaps is down

optional Replicator mirror
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy.
Your face IP:[]
You are visitor number 36,795.