📅 生成自定义日历日期序列Generate Custom Calendar Dates
从起始日期起每隔 n 天、周、月或年生成 k 个日期(最多到 9999-12-31)。本地处理。可设置「间隔」、「单位」、「个数」。From a start date, emit k dates every n days, weeks, months or years (up to 9999-12-31). Processed locally. Settings: Step, Unit, Count.
使用说明与常见问题How-to & FAQ
「生成自定义日历日期序列」是什么?What is the Generate Custom Calendar Dates tool?
从起始日期起每隔 n 天、周、月或年生成 k 个日期(最多到 9999-12-31)。本地处理。可设置「间隔」、「单位」、「个数」。From a start date, emit k dates every n days, weeks, months or years (up to 9999-12-31). Processed locally. Settings: Step, Unit, Count.
如何使用「生成自定义日历日期序列」?How do I use the Generate Custom Calendar Dates tool?
输入起始日期,设置“间隔”“单位”和“个数”,下方即生成日期列表。Enter a start date and set Step, Unit and Count; the list of dates appears below.
可以按月或按年生成吗?Can I step by months or years?
可以,在“单位”里选择天、周、月或年。按月/年时如果目标月份没有起始日,就取该月最后一天,例如 2024-01-31 每月一次得到 2024-02-29、2024-03-31。Yes, choose days, weeks, months or years under Unit. With months or years, a month that is too short for the start day uses its last day, so 2024-01-31 monthly gives 2024-02-29 and then 2024-03-31.
最多能生成多少个?How many dates can it generate?
最多 500 个,且不会超过 9999-12-31;到达上限时会停止并提示实际生成了多少个。“间隔”和“个数”留空时分别按 1 和 7 计算。Up to 500, and never past 9999-12-31; when that limit is reached the tool stops and says how many it generated. An empty Step counts as 1 and an empty Count as 7.
用的是哪种历法、支持哪些年份?Which calendar and years are supported?
按外推格里高利历(现行公历规则向前沿用)计算,年份为 0001–9999 的整数,输出年份一律 4 位补零(如 0005-12-25)。1e3、0x10 这类写法和多余的内容会报错。The proleptic Gregorian calendar (today's rules applied backwards) for whole-number years 0001 to 9999, always shown with 4 digits such as 0005-12-25. Forms like 1e3 or 0x10 and extra text give an error.
这个工具和时区有关吗?Do time zones affect this tool?
无关。结果只由输入的年份或日期按历法规则算出,不读取设备时钟,也不使用任何时区。No. The result is worked out from the year or date you enter with calendar rules alone; it never reads your device clock or uses a time zone.
输入和输出是什么样的?What does the input and output look like?
例如把「间隔」设为 1,「个数」设为 3,输入 2020-01-01,输出为:2020-01-01 ⏎ 2020-01-02 ⏎ 2020-01-03(⏎ 表示换行)。With "Step" set to 1 and "Count" set to 3, the input 2020-01-01 becomes 2020-01-01 ⏎ 2020-01-02 ⏎ 2020-01-03 (⏎ marks a line break).
有哪些选项可以调整?What options can I adjust?
「生成自定义日历日期序列」的设置:「间隔」默认 1;「单位」可选 天、周、月、年(默认 天);「个数」默认 7。每次生成结果都按当前设置处理。Settings in the Generate Custom Calendar Dates tool — "Step" default 1; "Unit": Days, Weeks, Months, Years (default Days); "Count" default 7. The result always uses the current settings.
「生成自定义日历日期序列」免费吗?需要注册吗?Is the Generate Custom Calendar Dates tool free? Do I need an account?
「生成自定义日历日期序列」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Generate Custom Calendar Dates tool is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.