每年 1 月 1 日的 Cronjob [英] Cronjob for 1st of January every year
本文介绍了每年 1 月 1 日的 Cronjob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在每年的 1 月 1 日获得正确的 cronjob 时间.
I am trying to get the correct cronjob time for 1st of January every year.
我想:0 0 1 1 *
谁能告诉我,是否正确?
Can anybody tell me, if it is correct?
推荐答案
是的,没错.
这是一个快速图表,您可以使用以供将来参考
Here is a quick chart you can use for future reference
# * * * * * command to execute
# ┬ ┬ ┬ ┬ ┬
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ └───── day of week (0 - 6) (0 to 6 are Sunday to Saturday)
# │ │ │ └────────── month (1 - 12)
# │ │ └─────────────── day of month (1 - 31)
# │ └──────────────────── hour (0 - 23)
# └───────────────────────── min (0 - 59)
这篇关于每年 1 月 1 日的 Cronjob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文