public class MonthDayMultipleYearsCronExpression extends CronExpression
This implementation generates expression for monthly scheduling dates using day of month and month. This is different from MonthDayCronExpression in a way that this generates dates between multiple years. day of month: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 month: 1,2,3,4,5,6,7,8,9,10,11,12 Note: Start day is skipped, date boundary is handled by ScheduleSequence implementation during schedule generation. e.g. Start Date : 02/24/09, Time : 10:10 (hh:mm) Format (second minute hour day month year) Generated Expression :0 10 10 1 * ? Explanation: Generate dates for 1st day of each month at 10:10 (hh:mm), starting from the start date to end date
SECONDS| Constructor and Description |
|---|
MonthDayMultipleYearsCronExpression(Date startDate,
Time24HrFmt time,
Integer day) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpression()
This method implementation must provide valid Cron Expression.
|
getStartDate, getTimepublic MonthDayMultipleYearsCronExpression(Date startDate, Time24HrFmt time, Integer day) throws ParseException
ParseExceptionpublic String getExpression()
CronExpressiongetExpression in class CronExpressionCopyright © 2013 The Kuali Foundation. All Rights Reserved.