⚡ Curated dev resources & dealsSponsored
DevToolBayFree Developer Tools

Cron 表达式解析

5 字段 Cron 表达式解析:白话解释、未来 5 次执行时间预览、*/步进/区间/列表语法与矛盾字段提示。

Description appears here…

Syntax reference

Five fields: minute (0–59) hour (0–23) day-of-month (1–31) month (1–12, JAN..DEC) weekday (0–7, 0 and 7 = SUN). Each field accepts * (any), a-b ranges, a,b,c lists, and */n steps (including a-b/n). The day/week combination follows standard cron semantics: if both day-of-month and weekday are restricted, a match on either one schedules the job.

如何使用Cron 表达式解析

输入标准 5 字段表达式——分、时、日、月、星期——解析器用白话解释含义、列出接下来的执行时间,并标出矛盾或不可能的字段。@daily 等简写、步进与区间语法都支持,直接从 crontab 粘贴即可。

它回答引发大多数 cron 事故的两个问题:日字段与星期字段同时受限时究竟哪天生效(Vixie cron 的语义:或)、以及计划在哪个时区求值。部署到服务器前先确认预览时间。

相关工具