[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
how to constract crone expression for every 16 week in a year  XML
Forum Index -> Quartz
Author Message
chimmani

neo

Joined: 03/03/2010 23:32:52
Messages: 1
Offline

HI,

how to constract crone expression for every 16 week in a year

regard's
chimmani
jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1654
Online


You can't.

But you can do it with DateIntervalTrigger (introduced with Quartz 1.7).

You can also sort-of do it with SimpleTrigger - repeat interval of:

16 * 7 * 24 * 60 * 60 * 1000 milliseconds.

Note though that doing it with SimpleTrigger will make it always fire that many milliseconds apart - and there aren't always the same number of milliseconds in a 16 week period (consider oddities such as Daylight Savings, leap seconds, etc.). -- so the time of day of firing could drift a bit over time. If that doesn't matter, then SimpleTrigger is... simple!
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team