GregorianCalendar : Java Glossary


Oracle’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:

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number