public class MonthDayCronExpression extends CronExpression
This implementation generates expression for monthly scheduling dates using day of month and month. 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 6 2/1 ? Explanation: Generate dates for 6th day of each month at 10:10 (hh:mm), starting from month of February. e.g. Start Date : 02/24/09, Time : 10:10 (hh:mm) Format (second minute hour day month year) Generated Expression :0 10 10 6 2/2 ? Explanation: Generate dates for 6th day of every other month at 10:10 (hh:mm), starting from month of February.
SECONDS| Constructor and Description |
|---|
MonthDayCronExpression(Date startDate,
Time24HrFmt time,
Integer day,
Integer frequencyInMonth) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpression()
This method implementation must provide valid Cron Expression.
|
getStartDate, getTimepublic MonthDayCronExpression(Date startDate, Time24HrFmt time, Integer day, Integer frequencyInMonth) throws ParseException
ParseExceptionpublic String getExpression()
CronExpressiongetExpression in class CronExpressionCopyright © 2013 The Kuali Foundation. All Rights Reserved.