spring-framework / org.springframework.scheduling.support / CronSequenceGenerator / <init>

<init>

CronSequenceGenerator(expression: String)

Construct a CronSequenceGenerator from the pattern provided, using the default TimeZone.

Parameters

expression - a space-separated list of time fields

Exceptions

IllegalArgumentException - if the pattern cannot be parsed

See Also
java.util.TimeZone#getDefault()

CronSequenceGenerator(expression: String, timeZone: TimeZone)

Construct a CronSequenceGenerator from the pattern provided, using the specified TimeZone.

Parameters

expression - a space-separated list of time fields

timeZone - the TimeZone to use for generated trigger times

Exceptions

IllegalArgumentException - if the pattern cannot be parsed