🔍

首页Home › 日期时间Date & Time

✂️ 把日期范围切成区间Split Date into Intervals

第一行开始日期、第二行结束日期,按每段天数切成多段(含两端,最多 500 段)。本地处理。Split a date range (start on line 1, end on line 2, both included) into chunks of n days, up to 500 chunks. Processed locally.

使用说明与常见问题How-to & FAQ

「把日期范围切成区间」是什么?What is the Split Date into Intervals tool?

第一行开始日期、第二行结束日期,按每段天数切成多段(含两端,最多 500 段)。本地处理。Split a date range (start on line 1, end on line 2, both included) into chunks of n days, up to 500 chunks. Processed locally.

如何使用「把日期范围切成区间」?How do I use the Split Date into Intervals tool?

第一行输入开始日期、第二行输入结束日期,填写“每段天数”,下方即列出各段的起止日期。Enter the start date on the first line and the end date on the second, fill in Days per chunk, and the start and end of each chunk appear below.

最多能切多少段?How many chunks can it make?

最多 500 段。超过时不会输出,而是提示会切成多少段以及“每段天数”至少要填多少。At most 500. Beyond that nothing is output; the message says how many chunks it would make and the smallest Days per chunk that fits.

末段不足一段怎么办?What about a short last chunk?

保留,结束日期总是最后一段的终点。两端日期都计入。It is kept; the end date is always the end of the last chunk. Both end dates are included.

可以输入几行?How many lines can I enter?

正好两行:开始日期和结束日期;多出的行或结束早于开始都会报出行号。“每段天数”留空按 7(框内灰色提示 7)。Exactly two: the start date and the end date. An extra line or an end before the start is reported with its line number. An empty Days per chunk counts as 7 (the empty box shows 7 as a hint).

用的是哪种历法、支持哪些年份?Which calendar and years are supported?

按外推格里高利历(现行公历规则向前沿用)计算,年份为 0001–9999,输出一律为 4 位年份的 YYYY-MM-DD。1582-10-05 至 1582-10-14 在 1582 年改历的国家并不存在,这里仍按外推格里高利历处理。The proleptic Gregorian calendar (today's rules applied backwards) for years 0001 to 9999, always written as YYYY-MM-DD with a 4-digit year. 1582-10-05 to 1582-10-14 never happened in countries that switched calendars in 1582; they are still handled on the proleptic Gregorian calendar here.

和时区有关吗?Do time zones matter?

无关,这里只处理钟面时间或日历日期,不读取设备时钟,也不考虑夏令时。No. It works on clock readings or calendar dates only, never reads your device clock and ignores daylight saving time.

输入和输出是什么样的?What does the input and output look like?

例如把「每段天数」设为 7,输入 2020-01-01 ⏎ 2020-01-10,输出为:2020-01-01 2020-01-07 ⏎ 2020-01-08 2020-01-10(⏎ 表示换行)。With "Days per chunk" set to 7, the input 2020-01-01 ⏎ 2020-01-10 becomes 2020-01-01 2020-01-07 ⏎ 2020-01-08 2020-01-10 (⏎ marks a line break).

有哪些选项可以调整?What options can I adjust?

「把日期范围切成区间」的设置:「每段天数」默认 7。每次生成结果都按当前设置处理。Settings in the Split Date into Intervals tool — "Days per chunk" default 7. The result always uses the current settings.

「把日期范围切成区间」免费吗?需要注册吗?Is the Split Date into Intervals tool free? Do I need an account?

「把日期范围切成区间」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Split Date into Intervals 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.

相关工具Related tools

✂️ 把时间范围切成区间Split Time into Intervals📅 生成日期序列Generate Date Sequence✂ 截断日历日期Truncate Calendar Date✂ 截断时钟时间Truncate Clock Time✅ 校验日历日期Validate Calendar Date✅ 校验时钟时间Validate Clock Time📊 可视化日期区间Visualize Date Intervals📊 可视化时间区间Visualize Time Intervals⏱ 日期时间差Date/Time Difference📅 日期时间计算器Date/Time Calculator支票 支票日期大写Check Date in Chinese Words📅 今天的日期(实时时钟、第几天、ISO 周)Today's Date (live clock, day of year, ISO week)

← 全部工具All tools