public class CronPatternUtil extends Object
Constructor and Description |
---|
CronPatternUtil() |
Modifier and Type | Method and Description |
---|---|
static List<Date> |
matchedDates(CronPattern pattern,
long start,
long end,
int count,
boolean isMatchSecond)
列举指定日期范围内所有匹配表达式的日期
|
static List<Date> |
matchedDates(String patternStr,
Date start,
Date end,
int count,
boolean isMatchSecond)
列举指定日期范围内所有匹配表达式的日期
|
static List<Date> |
matchedDates(String patternStr,
Date start,
int count,
boolean isMatchSecond)
列举指定日期之后(到开始日期对应年年底)内所有匹配表达式的日期
|
static List<Date> |
matchedDates(String patternStr,
long start,
long end,
int count,
boolean isMatchSecond)
列举指定日期范围内所有匹配表达式的日期
|
static Date |
nextDateAfter(CronPattern pattern,
Date start)
列举指定日期之后内第一个匹配表达式的日期
|
static Date |
nextDateAfter(CronPattern pattern,
Date start,
boolean isMatchSecond)
Deprecated.
isMatchSecond无效,使用
nextDateAfter(CronPattern, Date) |
public static Date nextDateAfter(CronPattern pattern, Date start)
pattern
- 表达式start
- 起始时间@Deprecated public static Date nextDateAfter(CronPattern pattern, Date start, boolean isMatchSecond)
nextDateAfter(CronPattern, Date)
pattern
- 表达式start
- 起始时间isMatchSecond
- 是否匹配秒(无效)public static List<Date> matchedDates(String patternStr, Date start, int count, boolean isMatchSecond)
patternStr
- 表达式字符串start
- 起始时间count
- 列举数量isMatchSecond
- 是否匹配秒public static List<Date> matchedDates(String patternStr, Date start, Date end, int count, boolean isMatchSecond)
patternStr
- 表达式字符串start
- 起始时间end
- 结束时间count
- 列举数量isMatchSecond
- 是否匹配秒public static List<Date> matchedDates(String patternStr, long start, long end, int count, boolean isMatchSecond)
patternStr
- 表达式字符串start
- 起始时间end
- 结束时间count
- 列举数量isMatchSecond
- 是否匹配秒public static List<Date> matchedDates(CronPattern pattern, long start, long end, int count, boolean isMatchSecond)
pattern
- 表达式start
- 起始时间end
- 结束时间count
- 列举数量isMatchSecond
- 是否匹配秒Copyright © 2024. All rights reserved.