Leap Year Calculator|闰年判断计算器

闰年判断计算器 | Leap Year Calculator

闰年判断计算器 Leap Year Calculator

输入年份,判断是否为闰年,并给出“为什么”的规则解释;支持批量粘贴多行年份。
Enter a year to check if it’s a leap year with clear rule explanations. Batch input supported.

1. 输入参数 · Inputs
输入一个整数年份(公历 / Gregorian)。支持负数表示公元前(仅作数学规则判断)。
Enter an integer year (Gregorian). Negative years are allowed for rule-based math checking only.
你可以粘贴一段年份列表,工具会逐个判断并输出表格。分隔符支持:换行、逗号、空格、分号。
Paste a list of years and get a result table. Separators supported: newline, comma, space, semicolon.
3. 使用说明 · Notes
  • 闰年规则(公历 / Gregorian) · Leap year rules:
    ① 能被 4 整除 → 可能是闰年 / divisible by 4 → candidate.
    ② 但能被 100 整除 → 不是闰年 / divisible by 100 → NOT leap.
    ③ 但如果还能被 400 整除 → 又是闰年 / divisible by 400 → leap again.
    口诀:四年一闰,百年不闰,四百年再闰
    Mnemonic: Leap every 4, except every 100, but leap again every 400.
  • 为什么有这个规则? · Why this rule exists?
    因为地球绕太阳一圈不是整数天(约 365.2422 天),所以需要通过闰日把日历“对齐”回季节。
    Earth’s orbital period is not an integer number of days (~365.2422 days), so leap days keep the calendar aligned with seasons.
  • 批量输入怎么用? · How to use batch input?
    你可以直接粘贴一列年份(例如从 Excel 或文本里复制),工具会自动识别分隔符(换行 / 逗号 / 空格 / 分号),并输出逐行判断表。
    You can paste a column of years (from Excel or text). The tool auto-detects separators (newline/comma/space/semicolon) and prints a row-by-row table.
  • 常见例子 · Common examples:
    2000 是闰年(400 整除)。1900 不是闰年(100 整除但不 400)。2024 是闰年(4 整除且不 100)。
    2000 is a leap year (divisible by 400). 1900 is NOT (divisible by 100 but not 400). 2024 is (divisible by 4 and not by 100).
  • 提示与边界情况 · Tips & edge cases:
    本工具按数学规则判断“公历闰年”,未处理各地区历法改革前后的历史差异;如果你在做史料研究,请以具体地区与年代的历法为准。
    This tool applies the modern Gregorian leap-year rules mathematically. It does not model historical calendar reforms by region/time; for historical research, use the local calendar in that period.

免责声明:本工具仅用于学习与快速判断,不构成任何专业建议或法律依据。
Disclaimer: For educational and quick-check purposes only; not legal or professional advice.