Julian and Gregorian Calendars

The difference between the Julian calendar and the Gregorian calendar may matter to your program if it uses dates before the switchovers.

A date will be different in the two calendars, in general.

Different switchover dates

The reasons for the difference are religious/political histories.

When your code uses a date before these switchover dates, it will matter whether it considers the switchover date to be the earlier date or the later date (or neither).

See also a concrete example here.

Argument start

Certain methods in class Date handle differences in the Julian and Gregorian calendars by accepting an optional argument start, whose value may be: