Picking a day in the month
The day-of-month field accepts:
- A literal day (
1,15,28). - A list of days (
1,15for 1st and 15th). - A range (
1-7for the first week). - A step (
1-31/3for every 3rd day). - The
Lmodifier for “last day” (extended cron only — see the dedicated guide).
The trickiest case: months without a 31st (Feb, Apr, Jun, Sep, Nov). 0 0 31 * * simply doesn't fire in those months. If you want “the last day” semantics, see the last-day-of-month guide.