开发者

Quartz.Net - Quarterly starting from today

How do you create a trigger that is triggered every 3 months (quarterly) starting today.

I though i could do something as simple as

tr = TriggerUtils.MakeHourlyTrigger(2190);
// (365 / 4) * 24 hours = 2190

I don't think this is best way t开发者_如何学Co solve this. I though there might be some fancy cron trigger way of solving it?


The fields in cron are

  1. Seconds
  2. Minutes
  3. Hours
  4. Day-of-Month
  5. Month
  6. Day-of-Week
  7. Year (optional field)

So you might like

0 0 0 1 */3 ?

Which will fire every 3 months on the first of the month at midnight.

http://quartznet.sourceforge.net/tutorial/lesson_6.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜