The Gregorian calendar is the calendar used in most parts of the world. It went into effect in October 1582 following the papal bull Inter gravissimas issued by Pope Gregory XIII, which introduced it as a modification of, and replacement for, the Julian calendar. The principal change was to space leap years slightly differently to make the average calendar year 365.2425 days long rather than the Julian calendar's 365.25 days, thus more closely approximating the 365.2422-day "tropical" or "solar" year that is determined by the Earth's revolution around the Sun.
The rule for leap years is that every year divisible by four is a leap year, except for years that are divisible by 100, except in turn for years also divisible by 400. For example, 1800 and 1900 were not leap years, but 1600 and 2000 were leap years.