Qaynaq LABS · TOOLS

CRON · DECODE

0 0 15 * 6

This cron expression runs a job at midnight (00:00) on the 15th day of every month, but only if that day falls on a Saturday (day-of-week 6).

Field-by-field

PositionValueMeaning
minute 0 The job runs at the 0th minute of the hour (i.e., on the hour).
hour 0 The job runs at the 0th hour of the day (i.e., midnight).
day-of-month 15 The job runs on the 15th day of the month.
month * The job runs every month, regardless of the month.
day-of-week 6 The job runs only if the day-of-week is Saturday (6).

Next fires (UTC)

  • 2023-12-16 00:00:00 UTC (December 16, 2023 is a Saturday)
  • 2024-01-15 00:00:00 UTC (January 15, 2024 is a Monday, so this will NOT run)
  • 2024-03-16 00:00:00 UTC (March 16, 2024 is a Saturday)
  • 2024-04-15 00:00:00 UTC (April 15, 2024 is a Monday, so this will NOT run)

Watch out for

  • The day-of-month (15) and day-of-week (6) fields are both specified, which creates a logical AND condition. The job will only run if BOTH conditions are met (i.e., the 15th is a Saturday).
  • If the 15th is not a Saturday, the job will not run that month.
  • This expression does not account for months with fewer than 15 days (e.g., February in non-leap years).

Equivalent forms

  • 0 0 15 * 0 (if Sunday is represented as 0)
  • 0 0 15 * SAT (using day-of-week names)
  • 0 0 15 * 7 (if Sunday is represented as 7)

About cron expressions

Cron is the standard format Unix-like systems use to schedule recurring jobs: five space-separated fields representing minute, hour, day of month, month, and day of week. The syntax is dense but unambiguous — once you can read it, you can express almost any schedule.

Qaynaq Labs' cron decoder works in both directions: paste an existing expression to read it out in English, or describe a schedule and get a valid cron string back. Each result includes the next few fire times, any caveats (like end-of-month edge cases), and equivalent alternative forms.

Frequently asked

Why does the job not run on the 15th if it's not a Saturday?

Because the day-of-week field (6 for Saturday) acts as a filter. The job only runs if both the day-of-month (15) and day-of-week (6) conditions are satisfied.

Can I make the job run on the 15th regardless of the day of the week?

Yes. Remove the day-of-week field or set it to '*'. For example: '0 0 15 * *'.

What happens if the 15th is a Sunday? Will it run?

No. The day-of-week field is set to 6 (Saturday), so the job will only run if the 15th is a Saturday. If the 15th is a Sunday, the job will not run.

How do I make the job run on the last Saturday of the month?

Use a more complex expression like '0 0 L * 6' (where 'L' stands for 'last day of the month'). However, this may not work in all cron implementations.