Julian calendar system

The Julian calendar system is calendar system that was widely used from about 4CE to 1582CE. It was replaced by the Gregorian calendar on 1582-10-15. The Julian calendar defines a leap year as once every four years. This becomes inaccurate over time, to such an extent that by 1582, 10 days had to be 'lost' to correct the calendar.

The Julian calendar is represented in Joda-Time by the Julian chronology. This chronology applies Julian rules for all time. Normally, a more accurate historic calendar is found by using the GregorianJulian chronology instead.


Using Julian chronology in Joda-Time

Within Joda-Time the Julian calendar system can be used by obtaining an instance of JulianChronology. This is normally created using the factory method JulianChronology.getInstance(). This is then passed into the constructors of the main date and time classes.

// setup date object for the Battle of Hastings in 1066
Chronology chrono = JulianChronology.getInstance();
DateTime dt = new DateTime(1066, 10, 14, 10, 0, 0, 0, chrono);

Back to top

Version: 2.12.7. Last Published: 2024-04-15.

Reflow Maven skin.