Calendar world for civil purposes. It is a purely solar calendar, with a cycle of leap days in a 400-year cycle designed to keep the duration of the year aligned with the solar year. Each Gregorian year has either 365 or 366 days (the leap day being inserted as 29 February), amounting to an average Gregorian year of 365.2425 days (compared to a solar year of 365.2422 days). It was introduced in 1582 as a refinement to the Julian calendar which had been in use throughout the European Middle Ages, amounting to a 0.002% correction in the length of the year.
Leap year leap day "every" four years amounts to about three extra days. The Gregorian calendar therefore drops three leap days every 400 years, which is the length of its "leap cycle". This is done by dropping February 29 in the three century years (multiples of 100) that cannot be exactly divided by 400. The years 1600, 2000 and 2400 are leap years, while 1700, 1800, 1900, 2100, 2200 and 2300 are common years. By this rule, the average number of days per year is 365 + − + = 365.2425. The rule can be applied to years before the Gregorian reform