Allio Tools Pro — No ads · Bulk processing · Save historyUpgrade $2.99/mo →
🚀Allio Tools Pro
  • No ads
  • Bulk tools
  • History
$2.99/mo

在线免费Cron表达式解析器

Thanks for rating!

解析cron表达式并以自然语言显示调度计划。

MinuteHourDay(M)MonthDay(W)Second
🚀Allio Tools Pro
  • Zero ads everywhere
  • Bulk processing
  • Save history
Upgrade — $2.99/moNo signup required
Allio Tools Pro — No ads · Bulk processing · Save historyUpgrade $2.99/mo →

Who uses the Cron表达式解析器?

  • 在部署 Kubernetes CronJob 或 GitHub Actions 定时任务前,先核对 cron 表达式含义的开发者。
  • 通过把服务器上已有的 cron 表达式翻译成英文来阅读它们的 DevOps 工程师。
  • 在不需要死记 cron 语法的情况下核对新计划任务时间的系统管理员。

How the Cron表达式解析器 works

1

在输入框中粘贴一个 cron 表达式(例如 0 9 * * 1-5)。

2

工具会自动识别 5 段或 6 段格式,并在你输入时显示一段(英文的)纯文本说明。

3

输入框上方的字段标签会显示每个位置分别对应分钟/小时/日期/月份/星期几。

4

没有下拉菜单式的可视化构建器——请直接输入表达式。

Tips & tricks

  • 输入框上方的字段标签(Minute、Hour、Day(M)、Month、Day(W))会告诉你每个位置对应什么——cron 字段的顺序很容易搞混。
  • 这个工具不会计算或显示接下来的执行时间——它只是把表达式翻译成一段纯文本说明。
  • 对于 6 段表达式,请手动再核对一下秒的数值——虽然该字段能被正确识别,但说明文字里不会提到它。
  • 星期几字段同时接受 0 和 7 表示星期日,符合标准 cron 约定。

Frequently Asked Questions

什么是 cron 表达式,它的结构是怎样的?

标准的 5 段 cron 表达式:分钟(0-59)小时(0-23)日期(1-31)月份(1-12)星期几(0-7,其中 0 和 7 都表示星期日)。示例:0 9 * * 1-5 = “周一到周五上午 9:00”。

cron 表达式中的 * 是什么意思?

* 表示该字段“每一个”。小时字段中的 * 表示“每小时”。0 * * * * 表示“每小时的第 0 分钟”(即整点)。*/15 表示“每 15 个单位”(即每 15 分钟)。

每 5 分钟执行一次的 cron 表达式是什么?

*/5 * * * * 每 5 分钟运行一次。等效但更冗长的写法是:0,5,10,15,20,25,30,35,40,45,50,55 * * * *。*/5 是标准的简写形式。

如何让 cron 任务在每周日凌晨 2:30 运行?

30 2 * * 0——分钟 30,小时 2,任意日期,任意月份,星期几为 0(星期日)。把它粘贴到解析器中,确认这段纯文本说明与你的预期一致。

这个工具会描述 6 段表达式中的秒字段吗?

不会——它能正确识别 6 段输入(Quartz、Spring、AWS 等调度器会把秒放在最前面),但生成的说明只涵盖分钟/小时/日期/月份/星期几。秒的具体数值本身不会出现在纯文本摘要中。

Is my data safe when using the Cron表达式解析器?

Completely safe. The Cron表达式解析器 processes everything locally in your browser. No input data, results, or usage information is ever transmitted to or stored on any server.

Can I use the Cron表达式解析器 output in commercial projects?

Yes. The Cron表达式解析器 is a utility tool and its output carries no licensing restrictions. You are free to use results in any project, commercial or personal.

Does the Cron表达式解析器 follow official standards?

Yes. The Cron表达式解析器 is built to comply with the relevant industry standard or specification for this utility type. If you encounter an unexpected result, verify your input against the specification — edge cases outside the standard may produce undefined behaviour.

💼 Reach 100K+ developers & creators — Advertise on Allio ToolsLearn More →