public class CronConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
matchSecond
是否支持秒匹配
|
protected TimeZone |
timezone
时区
|
| Constructor and Description |
|---|
CronConfig() |
| Modifier and Type | Method and Description |
|---|---|
TimeZone |
getTimeZone()
获得时区,默认为
TimeZone.getDefault() |
boolean |
isMatchSecond()
是否支持秒匹配
|
CronConfig |
setMatchSecond(boolean isMatchSecond)
设置是否支持秒匹配,默认不使用
|
CronConfig |
setTimeZone(TimeZone timezone)
设置时区
|
protected TimeZone timezone
protected boolean matchSecond
public CronConfig setTimeZone(TimeZone timezone)
timezone - 时区public TimeZone getTimeZone()
TimeZone.getDefault()public boolean isMatchSecond()
true使用,false不使用public CronConfig setMatchSecond(boolean isMatchSecond)
isMatchSecond - true支持,false不支持Copyright © 2025. All rights reserved.