uWant工具站

Cron表达式解析

解析Cron定时任务表达式

特殊字符

字符说明示例
*Any value* * * * * (every minute)
,List values1,3,5 (at minutes 1, 3, 5)
-Range1-5 (minutes 1 through 5)
/Step increment*/5 (every 5 minutes)
?No specific (day/weekday only)? (no specific value)
LLastL (last day of month)
WWeekday (nearest)15W (nearest weekday to 15th)
#Nth occurrence2#3 (3rd Monday)

常用示例

* * * * *Every minute
0 * * * *Every hour
0 0 * * *Midnight every day
0 9 * * 1-59 AM on weekdays
*/5 * * * *Every 5 minutes
0 0 1 * *Midnight on 1st of month
0 0 * * 0Midnight every Sunday
30 2 15 * *2:30 AM on 15th of month