📅 Leap Year Checker
Check whether a given year is a leap year and list all leap years within a queried range.
📐 工作原理与说明
格里高利历闰年判定:年份能被 4 整除且不能被 100 整除为闰年,或能被 400 整除为闰年;写作(year % 4 == 0 且 year % 100 != 0)或 year % 400 == 0;闰年 2 月为 29 天共 366 天,平年为 365 天。
请输入年份
本工具对公元 1–9999 年统一使用追溯格里高利历规则;早期年份不代表当时各地实际采用的历法(如儒略历地区),历史日期请另行核对。
📐 闰年规则
公历闰年判断规则(格里高利历):
1. 能被 4 整除但不能被 100 整除 → 闰年
2. 能被 400 整除 → 闰年(例外规则)
其他年份为平年(365 天)
闰年二月有 29 天,全年 366 天
示例:2000 ✓ 闰年;1900 ✗ 平年;2024 ✓ 闰年;2025 ✗ 平年
📚 深度解析:闰年检查器
💡 常见使用场景
- 判年份是否闰年。
- 核对闰年规则对 2 月 29 日生日的影响,或批量检查某日期范围是否含闰日。
判断
2024 被 4 整除且不被 100 → 闰年(366 天);2100 被 100 整除但不被 400 → 平年。
❓ 常见问题(FAQ)
- 闰年规则?
- 四年一闰、百年不闰、四百年再闰。
- 闰年的判定规则是什么?
- 能被 4 整除且不能被 100 整除,或能被 400 整除的年份为闰年,如 2024 是闰年而 2100 不是。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Leap rule | divisible by four unless by a hundred, or divisible by four hundred | Gregorian calendar rule |
| February length | February holds twenty-nine days in leap years | Gregorian calendar rule |
| Calendar basis | the Gregorian rule keeps the calendar aligned with the tropical year | ISO 8601 |
⚠️ 使用说明与注意事项
- 本工具纯前端运行,数据不会上传到服务器
- 建议在主流浏览器(Chrome/Safari/Firefox/Edge)中使用
- 计算结果仅供参考,请以实际应用场景为准