可以使用下面的网站生成cron表达式,亲测gitlab cron适用。
每月1号,下午2点15
15 14 1 * *
周一到周五,每天的晚上10点整
0 22 * * 1-5
在每月的第1至31日晚上9点,每隔两天执行一次
0 21 1/2 * *
今天是2020年2月11号
next at 2020-02-11 21:00:00
then at 2020-02-13 21:00:00
then at 2020-02-15 21:00:00
then at 2020-02-17 21:00:00
then at 2020-02-19 21:00:00
每个月的每两天晚上21:00
0 21 */2 * *
next at 2020-02-13 21:00:00
then at 2020-02-15 21:00:00
then at 2020-02-17 21:00:00
then at 2020-02-19 21:00:00
then at 2020-02-21 21:00:00