title: does there exist a java scheduler API that can answer "should this job be run given this date/time"
body: <p>Sorry for the tortured title. But basically what we want to do is implement a simple scheduling mechanism in our app but we don't need/want the scheduler to actually execute the job/task on schedule. We just want to ask the scheduler if the job/task should be run, given a date/time instance.</p>
  
  <p>So ideally, we would be able to do something like this:</p>
  
  <pre><code>// assume cron-style notation: every hour on the :30 minute mark
  Schedule s = new Schedule("30 * * * *"); 
  Calendar c = new GregorianCalendar(2015, 1, 18, 0, 30); // 12:30 AM
  boolean shouldRun = s.shouldRun(c); // true 
  c = new GregorianCalendar(2015, 1, 18, 0, 45); // 12:45 AM
  shouldRun = s.shouldRun(c); // false
  </code></pre>
  
  <p>I see that Quartz has a "JobExecutionContext" and you can call getNextFireTime(), which would kind of get us what we want. But as far as I understand it, we'd still have to go through the definition of the job and then actually schedule it, which is all unnecessary for our purposes.</p>
  
  <p>Hope this question makes sense. Thanks in advance</p>