下面的cron表达是什么意思?

use*_*334 6 quartz-scheduler

我有下面的cron表达.

"0 0 0 ? * SUN"
Run Code Online (Sandbox Code Playgroud)

什么时候执行?星期六的星期日午夜?

谢谢!

sta*_*ker 23

请参阅教程

*   *    *    *    *    *   (year optional)
?   ?    ?    ?    ?    ?
?   ?    ?    ?    ?    ?
?   ?    ?    ?    ?    ?
?   ?    ?    ?    ?    ?????? day of week (0 - 7) (0 or 7 is Sun, or use names)
?   ?    ?    ?    ??????????? month (1 - 12)
?   ?    ?    ???????????????? day of month (1 - 31)
?   ?    ????????????????????? hour (0 - 23)
?   ?????????????????????????? min (0 - 59)
??????????????????????????      seconds
Run Code Online (Sandbox Code Playgroud)

通配符(*字符)可用于表示此字段的"每个"可能值.因此,前一个示例的"月"字段中的*字符仅表示"每个月".因此,星期日字段中的"*"显然意味着"一周中的每一天".

'?' 允许使用字符表示日期和星期几字段.它用于指定"无特定值".当您需要在两个字段之一中指定某些内容而不是另一个字段时,这非常有用.请参阅下面的示例(和CronTrigger JavaDoc)以获得说明.

所以它意味着每个星期天午夜


Pet*_*rey 4

这实际上不是一个 cron 表达式。这是一个石英时间表表达式。

http://quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/crontrigger

表示0 0 0午夜(秒、分钟、小时)

这?意味着它取决于其他领域。

意思*是所有月份。

SUN周日的意思。