A cron expression is a string comprised of 6 or 7 fields separated by white space quartz-scheduler.org. Fields can contain any of the allowed values, along with various combinations of the allowed special characters for that field. The fields are as follows:
S.NO. | Field Name | Mandatory | Allowed Values | Special Characters
1. | Seconds | YES | 0-59 | , - * /
2. | Minutes | YES | 0-59 | , - * /
3. | Hours | YES | 0-23 | , - * /
4. | Day of month | YES | 1-31 | , - * ? / L W
5. | Month | YES | 1-12 or JAN-DEC | , - * /
6. | Day of week | YES | 1-7 or SUN-SAT | , - * ? / L #
7. | Year | NO | empty | , 1970-2099 - * /
I used cronguru for creating my own cron expression.