# 闰年

闰年是包含额外一天——2月29日——的日历年，以使历法与回归年（季节约365.2422天的周期）保持同步。在当今使用的民用历格里高利历中，若年份能被4整除，则为闰年；但世纪年例外，还必须能被400整除。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup>

| 关键事实 | 详情 |
|---|---|
| 格里高利历规则 | 能被4整除的年份是闰年；世纪年只有能被400整除才是闰年。因此1700、1800、1900和2100年不是闰年，而1600、2000和2400年是。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup> |
| 闰日 | 2月29日，格里高利历中唯一的闰日；平年有365天，闰年有366天。<sup>[5](https://learn.microsoft.com/en-us/dotnet/api/system.globalization.gregoriancalendar.isleapday?view=net-10.0)</sup> |
| 频率 | 每400年插入97个闰日，使格里高利历年的平均长度为365.2425天。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup> |
| 精度 | 格里高利历大约需要3300年才会与季节错开一天。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup> |
| 起源 | 尤利乌斯·凯撒（Julius Caesar）的儒略历（公元前46年）每四年增加一个闰日；教皇格里高利十三世（Pope Gregory XIII）1582年的改革引入了现行规则。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup> |
| 替代规则 | 由米卢廷·米兰科维奇（Milutin Milanković）设计的修订儒略历，与格里高利历每年约27秒的误差相比，其误差约为每年2秒。<sup>[3](https://www.timeanddate.com/calendar/revised-julian-calendar.html)</sup> |

## 为什么需要闰年

回归年，即从一次三月春分到下一次三月春分的时间，约为365.2422天，也就是365天5小时48分45秒。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup><sup> • </sup><sup>[4](https://www.timeanddate.com/date/leapyear.html)</sup> 日历年必须包含整数天，因此无法与回归年完全吻合。如果每年都是365天，日历每年会短约0.2422天；一个世纪后，日历与季节将相差约24天，使北半球春季的开始从3月20日移到4月13日。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup>

每四年增加一个闰日使日历年平均长度提高到365.25天。这是尤利乌斯·凯撒于公元前46年引入的儒略历的基础。但它矫正过度：日历年比回归年长约0.0078天，即每世纪略多于四分之三天。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup> 因此儒略历规则产生了过多闰年，日历以每128年约一天的速度偏离回归年。<sup>[4](https://www.timeanddate.com/date/leapyear.html)</sup>

## 格里高利历规则

1582年教皇格里高利十三世创立格里高利历时，日历被调整以使春季开始落在3月21日，并引入了新的闰日制度：不再是无例外地每四年一个闰日，而是每400年插入97个闰日。规则是：凡能被4整除的年份都是闰年，但能被100整除的年份除外；不过能被400整除的世纪年仍为闰年。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup><sup> • </sup><sup>[2](https://aa.usno.navy.mil/faq/calendars)</sup> 所得平均年长365.2425天，与回归年的差异在约半分钟以内，日历大约需要3300年才会落后季节一天。<sup>[1](https://aa.usno.navy.mil/faq/leap_years)</sup>

2000年是自1582年开始从儒略历过渡以来，世界上大部分地区首次适用能被400整除这一例外的年份；1600年也符合条件，但当时只有少数国家使用格里高利历。第三项标准的下一次适用将是2400年。<sup>[4](https://www.timeanddate.com/date/leapyear.html)</sup>

## 改革的历史及其采用

儒略历累积的误差是改革的直接动机。到16世纪，日历已偏差10天，而教会为计算复活节日期而固定在3月21日的春分日期已经提前。<sup>[6](https://www.nist.gov/blogs/taking-measure/leap-day-here-it-doesnt-have-be-your-standard-weekday)</sup><sup> • </sup><sup>[7](https://blogs.loc.gov/law/2013/01/inter-gravissimas-or-why-the-pope-is-never-late-for-tea/)</sup> 格里高利十三世将项目领导权交给耶稣会天文学家克里斯托弗·克拉维乌斯（Christopher Clavius），其委员会采用了阿洛伊修斯·利利乌斯（Aloysius Lilius）设计的方法。利利乌斯是佩鲁贾大学（University of Perugia）的医学教授，曾在该体系上花费十年，并在发表前去世。<sup>[7](https://blogs.loc.gov/law/2013/01/inter-gravissimas-or-why-the-pope-is-never-late-for-tea/)</sup>

这项改革以教皇诏书《至为重要》（Inter Gravissimas）颁布，有三个目标：将春分恢复到3月21日，确定复活节的计算方法，并通过减少闰年数量防止未来漂移。为立即重新对齐日历，1582年10月4日星期四（儒略历）之后紧接着是1582年10月15日星期五（格里高利历），删去了10天。<sup>[7](https://blogs.loc.gov/law/2013/01/inter-gravissimas-or-why-the-pope-is-never-late-for-tea/)</sup><sup> • </sup><sup>[8](https://www.govinfo.gov/content/pkg/GOVPUB-C13-PURL-gpo11091/pdf/GOVPUB-C13-PURL-gpo11091.pdf)</sup>

采用是渐进的。天主教国家在1582年实施变更，而新教国家大多等到18世纪。英格兰（England）及其殖民地在1752年采用格里高利历，届时必须从9月中删去11天；同一改革将民用年的开始移到1月1日。<sup>[7](https://blogs.loc.gov/law/2013/01/inter-gravissimas-or-why-the-pope-is-never-late-for-tea/)</sup><sup> • </sup><sup>[9](https://time.com/4161658/new-year-eve-day-january-history-celebrate/)</sup>

## 其他历法中的闰年

修订儒略历由塞尔维亚科学家米卢廷·米兰科维奇设计，用于改革东正教会的计时。它保留儒略历原则，即能被4整除的年份为闰年，但细化了世纪年的处理：能被100整除的年份，只有除以900的余数为200或600时才是闰年。其平均年长精确到每年约2秒，而格里高利历每年约27秒。直到2800年，两种历法保持一致；该年在格里高利历算法下被视为闰年，但在修订儒略历下不是。1923年希腊牧首梅勒提乌斯（Meletius）提议采用，但只有少数国家教会跟进，而且它从未打算作为民用历。<sup>[3](https://www.timeanddate.com/calendar/revised-julian-calendar.html)</sup>

其他传统用闰月而非闰日处理同样的不匹配。希伯来历、中国历和佛历在固定年份增加一整个月，古罗马历则在每两年2月底插入一个额外月份——梅尔塞多尼乌斯月（Mercedonius），直到在2月加一天的儒略历规则盛行。<sup>[10](https://time.com/6835208/leap-year-is-a-nifty-solution-to-an-ancient-problem/)</sup><sup> • </sup><sup>[4](https://www.timeanddate.com/date/leapyear.html)</sup>

## 计算机中的闰年

闰年规则是软件缺陷的常见来源。当软件未考虑闰年逻辑或使用有缺陷的逻辑时，就会发生闰年缺陷，这可能影响系统的可靠性、可用性或安全性。在日期字段上加减数字而不做闰年检查是不安全的：给2020-02-29加一年会得到2021-02-29，而这不是有效日期，因为2021年不是闰年。此类计算常用于确定证书到期日期，静态分析工具会标记未做闰年检查的日期运算。<sup>[11](https://learn.microsoft.com/en-us/cpp/code-quality/c26861?view=msvc-170)</sup> 日历库直接实现该规则；例如在.NET框架中，闰年定义为能被4整除的年份，但能被100整除的年份除外，能被400整除的年份仍为闰年，且2月29日是唯一的闰日。<sup>[5](https://learn.microsoft.com/en-us/dotnet/api/system.globalization.gregoriancalendar.isleapday?view=net-10.0)</sup>

这一日期的稀有性也有社会后果。一个人出生在2月29日的概率是1461分之一，而在四分之三的年份里，出生在这一天的人必须选择在2月28日还是3月1日庆祝。<sup>[10](https://time.com/6835208/leap-year-is-a-nifty-solution-to-an-ancient-problem/)</sup>

## References

1. [Leap Years, U.S. Naval Observatory Astronomical Applications Department](https://aa.usno.navy.mil/faq/leap_years)
2. [Introduction to Calendars, U.S. Naval Observatory](https://aa.usno.navy.mil/faq/calendars)
3. [The Revised Julian Calendar, timeanddate.com](https://www.timeanddate.com/calendar/revised-julian-calendar.html)
4. [Leap Years (Is 2026 a Leap Year?), timeanddate.com](https://www.timeanddate.com/date/leapyear.html)
5. [GregorianCalendar.IsLeapDay Method, Microsoft Learn](https://learn.microsoft.com/en-us/dotnet/api/system.globalization.gregoriancalendar.isleapday?view=net-10.0)
6. [Leap Day Is Here: It Doesn't Have to Be Your Standard Weekday, NIST](https://www.nist.gov/blogs/taking-measure/leap-day-here-it-doesnt-have-be-your-standard-weekday)
7. [Inter Gravissimas, or Why the Pope is Never Late for Tea, Library of Congress](https://blogs.loc.gov/law/2013/01/inter-gravissimas-or-why-the-pope-is-never-late-for-tea/)
8. [Converting Between Julian Dates and Gregorian Calendar Dates, NIST (govinfo.gov)](https://www.govinfo.gov/content/pkg/GOVPUB-C13-PURL-gpo11091/pdf/GOVPUB-C13-PURL-gpo11091.pdf)
9. [Why We Celebrate New Year's Day on January 1, TIME](https://time.com/4161658/new-year-eve-day-january-history-celebrate/)
10. [Why We Have Leap Years, TIME](https://time.com/6835208/leap-year-is-a-nifty-solution-to-an-ancient-problem/)
11. [Warning C26861: Field of a date-time object modified without proper leap year checking, Microsoft Learn](https://learn.microsoft.com/en-us/cpp/code-quality/c26861?view=msvc-170)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 测量与时间 › 历法 › Calendar mechanics and reform › Intercalation and leap rules

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/leap-year

English original: https://www.edgepedia.org/leap-year
