开发者

Quartz.Net - Quarterly starting from today

开发者 https://www.devze.com 2023-03-23 13:07 出处:网络
How do you create a trigger that is triggered every 3 months (quarterly) starting today. I though i could do something as simple as

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

精彩评论

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

关注公众号