Qaynaq LABS · TOOLS

CRON · DECODE

0 0 1 * 3

Run at midnight (00:00) on the 1st day of every month, but only if that day is a Wednesday (day-of-week=3).

Field-by-field

PositionValueMeaning
minute 0 At minute 0 (top of the hour).
hour 0 At hour 0 (midnight).
day-of-month 1 On the 1st day of the month.
month * Every month.
day-of-week 3 Only if the day is Wednesday (3).

Next fires (UTC)

  • 2023-11-01 00:00:00 UTC
  • 2023-12-06 00:00:00 UTC
  • 2024-01-03 00:00:00 UTC
  • 2024-02-07 00:00:00 UTC

Watch out for

  • The day-of-month (1) and day-of-week (3) fields are both specified, which creates a logical AND. This means the job will only run if BOTH conditions are met (e.g., the 1st of the month is a Wednesday).
  • If the 1st of the month is not a Wednesday, the job will not run that month.

Equivalent forms

  • 0 0 1 * 3 (same as input)
  • 0 0 1 * 3#1 (explicitly specifies the 1st Wednesday of the month, though this is redundant in this case)
  • 0 0 1 * * (if you only wanted the 1st of the month, regardless of day-of-week)

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 1st of the month if it's not a Wednesday?

Because both the day-of-month (1) and day-of-week (3) fields are specified, the cron expression requires BOTH conditions to be true for the job to run.

Can I simplify this to run on the 1st of every month regardless of the day of the week?

Yes. Use the cron expression '0 0 1 * *' to run at midnight on the 1st of every month, ignoring the day of the week.

What if I want to run on the first Wednesday of every month?

Use the cron expression '0 0 * * 3#1' to run at midnight on the first Wednesday of every month.