toreshed.blogg.se

Cron expressions
Cron expressions




You can also define an offset from the last day of the month, such as "L-5" which would mean the fifth-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 "3L" means "the last Tuesday of the month". If used in the day-of-week field alone, it simply means "7" or "SAT". E.g.: 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. Specifies different meaning in each of the two fields in which it is included. '2/5' in the day-of-month field means "fire every 5 days starting on the second day of the month". You can also include '/' after the '' character - in this case '' which is equivalent to having '0' before the '/'. Similarly if you gave "15/30" then the selection are the minutes 15, 45, 75, and 105. E.g.: If "0/30" is given in the minutes field, it indicates you selected the minutes 0, 30, 60, and 90. E.g.: "9,10,11" in the hour field indicates the 9th, 10th and 11th hours in a day. E.g.: "15-17" in the day field indicates the days 15, 16, and 17. Used to select something specific in one field while generating something random in the second field.E.g.: If you want the trigger to fire on the 15th day of a month but don't care about what hour of the day it is, then you can specify the two fields as "15" in the day field and "?" in the hour field. E.g.: "*" in the hour field indicates "every hour"

cron expressions

Used for selecting all values within a field. The legal characters and the names of months and days of the week are not case sensitive. The 'L' and 'W' characters can also be combined in the day-of-month field to yield 'LW', which translates to *"last weekday of the month"*.






Cron expressions