Proleptic Gregorian calendar

[1] ISO 8601:2004 (clause 3.2.1 The Gregorian calendar) explicitly requires use of the proleptic Gregorian calendar for all dates before the introduction of 15 October 1582, if the partners to an exchange of information agree.

The best practice for citation of historically contemporary documents is to cite the date as expressed in the original text and to notate any contextual implications and conclusions regarding the calendar used and equivalents in other calendars.

This is the convention in astronomical year numbering and the international standard date system, ISO 8601.

Thus the Julian calendar with quadrennial leap years was only used from the end of AD 4 until 1582 or later (contingent on the specific nation in question).

The proleptic Gregorian calendar is sometimes used in computer software to simplify identifying pre-Gregorian dates, e. g. in PostgreSQL,[5] MySQL,[6] SQLite,[7] PHP, CIM, Delphi and Python.