🔢 排序时间区间Sort Time Intervals
每行一个区间“起始 结束”,按开始时间排序,开始相同再按结束时间,仍相同保持原顺序;可跨午夜。本地处理。Sort time intervals by start time, then end time, then input order; overnight intervals are allowed. Processed locally.
使用说明与常见问题How-to & FAQ
「排序时间区间」是什么?What is the Sort Time Intervals tool?
每行一个区间“起始 结束”,按开始时间排序,开始相同再按结束时间,仍相同保持原顺序;可跨午夜。本地处理。Sort time intervals by start time, then end time, then input order; overnight intervals are allowed. Processed locally.
如何使用「排序时间区间」?How do I use the Sort Time Intervals tool?
每行输入一个区间“开始时间 结束时间”(如 09:00 10:30),下方即按开始时间排好;结束早于开始默认视为跨午夜。Enter one interval per line as start time and end time, such as 09:00 10:30, and the sorted list appears below; an end before the start counts as overnight by default.
开始时间相同时怎么排?How are ties ordered?
先按开始时间,再按结束时刻(跨午夜的区间结束在次日,所以排在同一开始时间的当天区间之后),都相同时保持输入顺序(稳定排序)。By start time, then by end time (an overnight interval ends the next day, so it comes after same-day intervals with the same start); when both are equal the input order is kept (a stable sort).
结束时间早于开始时间(跨午夜)怎么办?What if the end time is before the start time (overnight)?
默认勾选“跨午夜”:结束早于开始表示结束在次日,例如 22:00 02:00 是 4 小时。取消勾选后这样的行会被列为错误。开始等于结束表示长度为 0。"Crosses midnight" is ticked by default: an end earlier than the start means the next day, so 22:00 02:00 lasts 4 hours. Untick it to treat such lines as errors. Equal start and end means a length of 0.
某一行格式不对会怎样?What happens when a line is invalid?
其余有效的行照常处理;无效的行(包括末尾多出内容的行,如“09:00 10:00 junk”)不进入结果,并在结果下方用红字列出行号和原因。所有行都无效时显示“未处理任何内容”和前几条错误。The valid lines are processed as usual. Invalid lines, including lines with extra text such as "09:00 10:00 junk", are left out and listed in red below the result with their line numbers and reasons. If no line is valid you get "nothing was processed" with the first errors.
省略秒会怎样?What if seconds are left out?
省略的秒按 00 计,输出统一为 HH:MM:SS。Missing seconds count as 00 and the output is always HH:MM:SS.
和时区有关吗?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?
例如输入 12:00 13:00 ⏎ 09:00 10:00,输出为:09:00:00 10:00:00 ⏎ 12:00:00 13:00:00(⏎ 表示换行)。The input 12:00 13:00 ⏎ 09:00 10:00 becomes 09:00:00 10:00:00 ⏎ 12:00:00 13:00:00 (⏎ marks a line break).
有哪些选项可以调整?What options can I adjust?
「排序时间区间」的设置:可勾选:「降序」、「跨午夜(结束早于开始=次日)」(默认勾选)。每次生成结果都按当前设置处理。Settings in the Sort Time Intervals tool — tick boxes: "Descending", "Crosses midnight (end before start = next day)" (on by default). The result always uses the current settings.
「排序时间区间」免费吗?需要注册吗?Is the Sort Time Intervals tool free? Do I need an account?
「排序时间区间」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Sort Time 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.