A Cron Expressions This appendix covers the string
The month and day-of-the-week fields accept abbreviated names in lieu of numbers (e.g. month can have Jan to Dec instead of 1 to 12). These are not case sensitive, so MON, Mon, and mon will all evaluate to 2. L in the day-of-the-month field indicates that the job should be run on the last day in the month. When it is used in the day-of-the-month field, the scheduler will run the job on the last day of the month. L as a value in the day-of-the-week field means the last day in the week, so it has the same effect as 7. L can be also used as a modifier in the day-of-the-week field by appending it to a number, so that the job will be run on the last of that day in the month. For example, here is a cron expression to run a job at noon on the last Tuesday of the month: 0 0 12 ? * 3L The W modifier in the day-of-month field indicates that the task is to be run on weekdays only. If the date falls on a weekend, then the task is delayed until the next weekday. For example, consider this cron expression, which runs a job at 1:00 AM on the first of every month: 0 0 1 1W * ? LW indicates that a job is to be run on the last weekday in the month. For example: 0 0 1 LW * ? If the first of the month fell on a Saturday, then the job would not be executed until Monday. The hash sign, #, is used in the day-of-the-week field to indicate that the job should be run on the nth such day in the month. For example, to run a job at noon on the third Friday of the month, you would use a string like this: 0 0 12 ? * 6#3 As mentioned above, an asterisk, *, indicates any value. A dash, -, indicates a range. For example, if I want to run a job once an hour for three hours in a row, I can use this cron expression: 0 0 1-3 * * ? To set several different values in the same field, you can use commas to separate them. For example, to run four times in an hour, you could use the following: 0 0,15,30,45 * * * ? it will then run every fifteen minutes. Do not put spaces before or after the commas. Another way to do this would be to tell the job scheduler to run the job at various intervals. This can be accomplished with a forward slash, /. So instead of telling the scheduler to run at the specific minutes 0, 15, 30, and 45, we could tell it to run every fifteen minutes: 0 0/15 * * * ?
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost jsp Web Hosting services