🔍

首页Home › 日期时间Date & Time

🎲 生成随机日历日期Generate Random Calendar Dates

在起止日期之间随机生成若干日期(可设种子)。输入两行起止。本地处理。可设置「个数」、「种子」。Random dates between start and end (optional seed). Two lines: start, end. Processed locally. Settings: Count, Seed.

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

「生成随机日历日期」是什么?What is the Generate Random Calendar Dates tool?

在起止日期之间随机生成若干日期(可设种子)。输入两行起止。本地处理。可设置「个数」、「种子」。Random dates between start and end (optional seed). Two lines: start, end. Processed locally. Settings: Count, Seed.

如何使用「生成随机日历日期」?How do I use the Generate Random Calendar Dates tool?

第一行输入开始日期、第二行输入结束日期,设置个数和种子,下方即生成随机日期。Enter the start date on the first line and the end date on the second, set Count and Seed, and the random dates appear below.

要怎么输入?How do I enter the range?

第一行写开始日期,第二行写结束日期(YYYY-MM-DD),两端都可能被抽到;多出的行会报出行号。Put the start date on the first line and the end date on the second (YYYY-MM-DD); both ends can be drawn. Any extra line is reported with its line number.

怎样得到可复现的结果?How do I get the same result again?

填写相同的“种子”会得到相同的结果;把种子留空则每次使用浏览器的安全随机数(crypto.getRandomValues),结果每次不同。The same Seed always gives the same result. Leave Seed empty to use the browser's secure random numbers (crypto.getRandomValues), which give a different result each time.

用的是哪种历法、支持哪些年份?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-01 ⏎ 2020-01-31,「个数」设为 3,「种子」设为 1,输出为:2020-01-26 ⏎ 2020-01-04 ⏎ 2020-01-26(⏎ 表示换行)。With "Count" set to 3 and "Seed" set to 1, the input 2020-01-01 ⏎ 2020-01-31 becomes 2020-01-26 ⏎ 2020-01-04 ⏎ 2020-01-26 (⏎ marks a line break).

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

「生成随机日历日期」的设置:「个数」默认 5;「种子」默认 1。每次生成结果都按当前设置处理。Settings in the Generate Random Calendar Dates tool — "Count" default 5; "Seed" default 1. The result always uses the current settings.

「生成随机日历日期」免费吗?需要注册吗?Is the Generate Random Calendar Dates tool free? Do I need an account?

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

🎲 生成随机时钟时间Generate Random Clock Times📅 生成日期序列Generate Date Sequence🎲 生成随机 Unix 时间戳Generate Random Unix Time⏰ 生成时间序列Generate Time Sequence⏱ 生成 Unix 时间戳序列Generate Unix Time Sequence📅 递增日历日期Increment Calendar Date⏰ 递增时钟时间Increment Clock Time🪞 镜像时钟时间Mirror Clock Time♈ 列出全部星座Print All Zodiac Signs📅 四舍五入日历日期Round Calendar Date⏰ 四舍五入时钟时间Round Clock Time📐 按夹角反推时钟时间Set Clock Hand Angle

← 全部工具All tools