Quartz.Net - Quarterly Starting Today

How to create a trigger that runs every 3 months (quarterly), starting today.

I could do something as simple as

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

I do not think this is the best way to solve this problem. Although maybe there is some fancy way to trigger a trigger?

+4
source share
1 answer

Fields in cron are equal

  • Seconds
  • Minutes
  • Clock
  • day month
  • Month
  • day-week
  • Year (optional field)

So you may like

 0 0 0 1 */3 ? 

which will shoot every 3 months in the first month of the month at midnight.

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

+7
source

All Articles