This commit is contained in:
Looly
2022-03-27 14:45:54 +08:00
parent bbcf5f1b54
commit fbc4662271
2 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ public class CronPatternNextMatchTest {
@Test
public void nextMatchAfterTest(){
CronPattern pattern = new CronPattern("23 12 * 12 * * *");
//noinspection ConstantConditions
final Calendar calendar = pattern.nextMatchAfter(
DateUtil.parse("2022-04-12 09:12:23").toCalendar());
Console.log(DateUtil.date(calendar));