想設(shè)置一個定時時間,表示每周四下午14點19分執(zhí)行,語句如:later.parse.cron('0 19 14 ? * 5 *') 但就是一直沒有執(zhí)行效果,換成later.parse.text('at every 1 min')是可以執(zhí)行的,第一條語句是有什么問題嗎?
1 回答

忽然笑
TA貢獻1806條經(jīng)驗 獲得超5個贊
cron
各個位置對應(yīng)的時間
# ┌───────────── minute (0 - 59)# │ ┌───────────── hour (0 - 23)# │ │ ┌───────────── day of the month (1 - 31)# │ │ │ ┌───────────── month (1 - 12)# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday;# │ │ │ │ │ 7 is also Sunday on some systems)# │ │ │ │ │# │ │ │ │ │# * * * * * command to execute
所以應(yīng)該這樣設(shè)
later.parse.cron('19 14 ? * 4')
later.parse.cron
wiki Cron
- 1 回答
- 0 關(guān)注
- 1140 瀏覽
添加回答
舉報
0/150
提交
取消