W("weekday") 只能用在day-of-month字段。用来描叙最接近指定天的工作日(周一到周五)。例如:在day-of-month字段用“15W”指“最接近这个 月第15天的工作日”,即如果这个月第15天是周六,那么触发器将会在这个月第14天即周五触发;如果这个月第15天是周日,那么触发器将会在这个月第 16天即周一触发;如果这个月...
(cron="* * * 1 * ?"):每月的 1 号,启动这个任务; L:(出现在日和周的位置)”,last:最后一个(cron="* * * ? * 3L"):每月的最后一个周二 W:Work Day:工作日(cron="* * * W * ?"):每个月的工作日触发(cron="* * * LW * ?"):每个月的最后一个工作日触发 #:第几个(cron="* * ...
(6)L:表示最后,只能出现在DayofWeek和DayofMonth域。如果在DayofWeek域使用5L,意味着在最后的一个星期四触发。 (7)W:表示有效工作日(周一到周五),只能出现在DayofMonth域,系统将在离指定日期的最近的有效工作日触发事件。例如:在 DayofMonth使用5W,如果5日是星期六,则将在最近的工作日:星期五,即4日触发。如果...
**L**(“last”) “L” 用在day-of-month字段意思是“这个月最后一天”;用在day-of-week字段, 它简单意思是"7" or “SAT”。 如果在day-of-week字段里和数字联合使用,它的意思就是“这个月的最后一个星期几”– 例如: “6L” means“这个月的最后一个星期五”. 当我们用“L”时,不指明一个列表...
"L"应该加上一个数字(1..7)或者三个以后的日期标识符(MON .. SUN)。示例:
last:最后一个 (cron="* * * ? * 3L"):每月的最后一个周二 W: Work Day:工作日 (cron="* * * W * ?"):每个月的工作日触发 (cron="* * * LW * ?"):每个月的最后一个工作日触发 #:第几个 (cron="* * * ? * 5#2"):每个月的第 2 个周 4 ...
"Every minute, on the third Monday of the month" ExpressionDescriptor.GetDescription("* * * * 4L"); "Every minute, on the last Thursday of the month" ExpressionDescriptor.GetDescription("*/5 * L JAN *"); "Every 5 minutes, on the last day of the month, only in January" ...
0 15 10 ? * MON-FRI Fire at 10:15am every Monday, Tuesday, Wednesday, Thursday and Friday 0 15 10 15 * ? Fire at 10:15am on the 15th day of every month 0 15 10 L * ? Fire at 10:15am on the last day of every month ...
"Every minute, on the third Monday of the month" ExpressionDescriptor.GetDescription("4L"); "Every minute, on the last Thursday of the month" ExpressionDescriptor.GetDescription("/5L JAN *"); "Every 5 minutes, on the last day of the month, only in January" ...
0 0 0 * * THUL last Thursday of the month at midnight 0 0 0 2,3,L * * on the 2nd, 3rd and last day of the month at midnight 0 0 0 3-8,L * * between 3rd and 8th, and last day of the month at midnight Weekdays Cron ExpressionMeaning 0 0 0 1W * * first weekday of ...