我正在尝试安排通过API发送信息中心: http://docs.gooddata.apiary.io/#reportsanddashboardsbyemail
用于设置电子邮件发送频率的参数有一些奇怪的格式:
"recurrency": "0:0:0:1*12:0:0",
我希望它是一个cron表达式,之前从未见过这种格式。任何人都知道数字的含义以及如何将它们组合在一起?
答案 0 :(得分:2)
您可以找到规范here
例如:
0:0:2:1:0:0:0 every 2 weeks and 1 day
0:0:0:0:5:30:0 every 5 hours and 30 minutes
0:0:0:2*12:30:0 every 2 days at 12:30 (each day)
0:0:0:1*2,4,6:0:0 every day at at 2:00, 4:00, and 6:00
0:0:0:2*12-13:0,30:0 every other day at 12:00, 12:30, 13:00, and 13:30
0:1:0*-1:0:0:0 the last day of every month
*1990-1995:12:0:1:0:0:0 Dec 1 in 1990 through 1995
3*1:0:2:12:0:0 every 3 years on Jan 2 at noon
0:1*0:2:12,14:0:0 2nd of every month at 12:00 and 14:00