{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Gregorian - The GregorianCalendar class is a concrete...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
The GregorianCalendar class is a concrete subclass of the Calendar class and provides an instance of time and can be used to do date calculations such as finding leap years, comparing objects to dates, and adding or subtracting time amounts . The Gregorian calendar was adopted in 1582 and is currently the most universal calendar in the world. This class supports both the Gregorian calendar and Julian Calendar. Dates before October 15, 1582 will automatically be in the Julian calendar and those after or undefined will be in the Gregorian Calendar. This cutover date can be changed if needed by using the method setGregorianChange (). The only difference between how the Julian and Gregorian are how the leap years are determined. With the Julian calendar, leap years are counted every four years. The Gregorian does the same thing but also omits those century years which are not divisible by 400. One interesting thing to note about the Gregorian calendar class is that even though the Julian calendar places New Years Day on March 25, it is always counted on January first no
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

Gregorian - The GregorianCalendar class is a concrete...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online