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.
Epact the lunar calendar to dates in the common solar calendar. A (solar) calendar year has 365 days (366 days in leap years). A lunar year has 12 lunar months which alternate between 30 and 29 days (in leap years, one of the lunar months has a day added). If a solar and lunar year start on the same day, then after one year, the start of the solar year is 11 days after the start of the lunar year; after two years, it is 22 days after. These excess days are epacts, and are added to the day of the