Use > Modeling > Modeling > Reports > Cron Expressions

Cron Expressions

A Cron Expression is a string composed of six or seven fields separated by white space. Six of the fields are mandatory, and one is optional.

The following table contains the fields used in a Cron Expression:

Field Name Allowed Values Allowed Special Characters
Seconds 0-59 , - * /
Minutes 0-59 , - * /
Hours 0-23 , - * /
Day of month 1-31 , - * ? / L W C
Month 1-12 or JAN-DEC , - * /
Day of week 1-7 or SUN-SAT , - * ? / L C #
Year (optional) empty, 1970-2099 , - * /

Note You cannot specify both Day of Month and Day of Week; you must use the ? character in one or both of these fields.

The following table contains examples of how to use Cron expressions.

Cron Expression Meaning
0 0 12 * * ? The task runs every day at 12:00 PM.
0 15 10 ? * * The task runs at 10:15 AM every day.
0 15 10 * * ? 2011 The task runs at 10:15 AM every day during the year 2011.
0 0/5 14 * * ? The task runs every 5 minutes starting at 2 PM and ending at 2:55 PM, every day.
0 15 10 15 * ? The task runs at 10:15 AM on the 15th day of every month.
0 15 10 ? * 6L The task runs at 10:15 AM on the last Friday of every month.
0 15 10 ? * 6#3 The task run at 10:15 AM on the third Friday of every month.

Related Topics Link IconRelated Information