Note: When using the ‘L’ option, it is important not to specify lists, or ranges of values, as you’ll get confusing/unexpected results. You can also specify an offset from the last day of the month, such as “L-3” which would mean the third-to-last day of the calendar month. But, if used in the day-of-week field after another value, it means “the last xxx day of the month” - for example “6L” means “the last friday of the month”. If used in the day-of-week field by itself, it simply means “7” or “SAT”. For example, the value “L” in the day-of-month field means “the last day of the month” - day 31 for January, day 28 for February on non-leap years. L (“last”) - has different meaning in each of the two fields in which it is allowed.‘1/3’ in the day-of-month field means “fire every 3 days starting on the first day of the month”. You can also specify ‘/’ after the ‘’ character - in this case ‘’ is equivalent to having ‘0’ before the ‘/’. And “5/15” in the seconds field means “the seconds 5, 20, 35, and 50”. For example, “0/15” in the seconds field means “the seconds 0, 15, 30, and 45”. For example, “MON,WED,FRI” in the day-of-week field means “the days Monday, Wednesday, and Friday”. For example, “10-12” in the hour field means “the hours 10, 11 and 12”. See the Examples chapter for clarification. For example, to fire a trigger on a particular day of the month (say, the 10th), but any day of the week, use “10” in the day-of-month field, and “?” in the day-of-week field. ? (“no specific value”) - useful when you need to specify something in one of the two fields in which the character is allowed, but not the other.For example, “” in the minute field means *“every minute”. * (“all values”) - used to select all values within a field.The following is the list of special characters used in Cron Expressions:
0 Comments
Leave a Reply. |