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
- Seconds
- Minutes
- Hours
- Day-of-Month
- Month
- Day-of-Week
- 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
精彩评论