Cron 表达式解析
UpBox优盒工具箱,免费 cron 表达式解析工具,展开五段字段取值并计算接下来 5 次运行时间,支持别名与常用预设。
无需注册 · 数据不上传No sign-up · nothing uploaded
Cron 表达式Cron expression
下次运行—
字段数5
输入 cron 表达式后自动解析
字段解析Field breakdown
按浏览器本地时区计算,只支持 5 段(分 时 日 月 周)
接下来的 5 次运行Next five runs
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器
工具介绍
Cron 表达式解析把五段式定时规则拆开,展示分钟、小时、日、月、星期各自的实际取值,并按顺序算出接下来 5 次运行时间。 The cron parser breaks a five-field schedule into minute, hour, day, month and weekday values, then lists the next five run times in order.
支持 `*`、`?`、列表、区间、步长与 `@daily` 这类别名;日与星期同时受限时按 crontab 的「任一满足」规则匹配。 It supports `*`, `?`, lists, ranges, steps and aliases like `@daily`. When both day-of-month and weekday are restricted, it follows crontab’s “either matches” rule.
- 五段完整校验Five-field validation
- 字段取值展开Field expansion
- 未来 5 次运行时间Next five runs
- 常用预设一键填入Preset shortcuts
- 本地时区计算Local-time calculation
使用说明
- 在输入框填写 cron 表达式,或点下方预设。Type a cron expression, or pick a preset below.
- 页面自动解析并校验每一段范围。It validates each field’s range automatically.
- 核对字段解析,确认日 / 星期的匹配结果。Check the field breakdown and the day/weekday match.
- 对照接下来 5 次运行时间,验证是否符合预期。Confirm the next five run times match expectations.
常见问题
日和周同时指定时怎么算?What happens when both day and weekday are set?
按 crontab 规则取「或」:满足日或满足星期其一就会运行。只写 `*` 的一段不参与判断。Crontab uses OR: the job runs if either the day-of-month or the weekday matches. A `*` field is ignored in that decision.
支持 6 段带秒的表达式吗?Are six-field expressions with seconds supported?
不支持,只解析 5 段。带秒的表达式会被提示格式错误。No, only five fields. Expressions with seconds are reported as a format error.
时区是哪个?Which time zone is used?
按浏览器本地时区计算,结果里的日期时间也是本地时间。Your browser’s local zone; the listed times are local as well.
为什么说未来 8 年没有运行时间?Why does it say no run time in 8 years?
计算范围限制在 8 年内,像 2 月 30 日这种永远不存在的组合就会报这个提示。The search window is eight years; impossible dates such as 30 February trigger that message.