1

In Quartz, we can tell if a date satisfies a cron pattern by calling CronExpression.isSatisfiedBy(date).

May I know how to do the same in cron4j?

Thank you!

Hez
  • 125
  • 2
  • 11

2 Answers2

3

I think there is a

static boolean validate(java.lang.String schedulingPattern) 

on the SchedulingPattern class.

Undo
  • 25,519
  • 37
  • 106
  • 129
Mukesh
  • 31
  • 2
2

The method is SchedulingPattern.match(millis)

Hez
  • 125
  • 2
  • 11