Last Friday of the month
0 0 0 ? * 6LQuartz / AWS pattern using the L modifier — fires on the last Friday of each month.
Why this pattern
End-of-week, end-of-month financial close jobs frequently target the last Friday of the month rather than a fixed date — because the 31st might fall on a Sunday and your team is not in the office. The Quartz / AWS L modifier expresses this directly: 0 0 0 ? * 6L means "at midnight, on the last Friday of the month" (Quartz day-of-week: SUN=1, SAT=7, so FRI=6).
Variations
- Last weekday of the month (Quartz):
0 0 0 LW * ? - Last day of the month:
0 0 0 L * ? - First Monday of the month:
0 0 9 ? * MON#1
Platform notes
Standard Unix cron does not support L, W, or #. If you need this on plain Linux cron, you have to script around it (e.g. with an outer shell check: [ $(date -d '+7 days' +\%m) != $(date +\%m) ] || exit 0). On AWS EventBridge, this is native syntax — copy the AWS snippet below.