Created
January 3, 2017 08:42
-
-
Save hn5092/3ce67d8d58f8cf5915690cb1a6022619 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CronTrigger cronTrigger = new CronTrigger("* 0/2 * * * * "); | |
SimpleTriggerContext triggerContext = new SimpleTriggerContext(); | |
triggerContext.update(new Date(System.currentTimeMillis()),new Date(System.currentTimeMillis()+10), | |
new Date(System.currentTimeMillis()+100)); | |
Date date = cronTrigger.nextExecutionTime(triggerContext); | |
System.out.println(date); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment