🔍

首页Home › 日期时间Date & Time

🔢 排序日历日期Sort Calendar Dates

按时间先后排序每行日期,无效的行单独列出。本地处理。可设置「降序」。Sort dates one per line in chronological order; invalid lines are listed separately. Processed locally. Settings: Descending.

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

「排序日历日期」是什么?What is the Sort Calendar Dates tool?

按时间先后排序每行日期,无效的行单独列出。本地处理。可设置「降序」。Sort dates one per line in chronological order; invalid lines are listed separately. Processed locally. Settings: Descending.

如何使用「排序日历日期」?How do I use the Sort Calendar Dates tool?

每行输入一个 YYYY-MM-DD 日期,下方即显示排序后的列表;勾选“降序”可从晚到早排列。Enter one YYYY-MM-DD date per line to get them in order below; tick "Descending" to list the latest first.

无效的行会怎样?What happens to invalid lines?

不会被悄悄丢掉:有效日期照常排序输出,无效的行(如 bad、2019-02-30)不放进结果,并在结果下方用红字列出它们的行号。They are never dropped silently. Valid dates are sorted as usual, and invalid lines such as bad or 2019-02-30 are left out of the result and listed by line number in red below it.

能处理多少行?How many lines can it handle?

每行只解析一次后再排序,几千行(3 万字符以上)也能在不到一秒内完成;相同日期保持原来的先后顺序。Each line is parsed once before an O(n log n) sort, so thousands of lines (30,000+ characters) finish in well under a second. Equal dates keep their original order.

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

按外推格里高利历(现行公历规则向前沿用)计算,年份为 0001–9999,输出一律为 4 位年份的 YYYY-MM-DD;结果不会超过 9999-12-31。The proleptic Gregorian calendar (today's rules applied backwards) for years 0001 to 9999. Output always uses YYYY-MM-DD with a 4-digit year and never goes past 9999-12-31.

和时区有关吗?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?

例如输入 2020-01-03 ⏎ 2020-01-01 ⏎ 2020-01-02,输出为:2020-01-01 ⏎ 2020-01-02 ⏎ 2020-01-03(⏎ 表示换行)。The input 2020-01-03 ⏎ 2020-01-01 ⏎ 2020-01-02 becomes 2020-01-01 ⏎ 2020-01-02 ⏎ 2020-01-03 (⏎ marks a line break).

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

「排序日历日期」的设置:可勾选:「降序」。每次生成结果都按当前设置处理。Settings in the Sort Calendar Dates tool — tick boxes: "Descending". The result always uses the current settings.

「排序日历日期」免费吗?需要注册吗?Is the Sort Calendar Dates tool free? Do I need an account?

「排序日历日期」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Sort 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.

相关工具Related tools

🔢 排序时钟时间Sort Clock Times🔢 排序日期区间Sort Date Intervals🔢 排序时间区间Sort Time Intervals🔤 拼读日历日期Spell Calendar Date🔤 拼读时钟时间Spell Clock Time✂️ 把日期范围切成区间Split Date into Intervals✂️ 把时间范围切成区间Split Time into Intervals✂ 截断日历日期Truncate Calendar Date✂ 截断时钟时间Truncate Clock Time✅ 校验日历日期Validate Calendar Date✅ 校验时钟时间Validate Clock Time📊 可视化日期区间Visualize Date Intervals

← 全部工具All tools