📅 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)中使用
- 計算結果僅供參考,請以實際應用場景為準