Qaynaq LABS · TOOLS

CRON · DECODE

0 0 1 * 1

This cron expression runs a job at midnight (00:00) on the first day of every month, but only if that day is a Monday (day-of-week 1).

Field-by-field

PositionValueMeaning
minute 0 The job runs at the 0th minute of the hour (i.e., the start of the hour).
hour 0 The job runs at the 0th hour of the day (i.e., midnight).
day-of-month 1 The job runs on the 1st day of the month.
month * The job runs every month, regardless of the month.
day-of-week 1 The job runs only if the day is Monday (where 0 and 7 are Sunday).

Next fires (UTC)

  • 2024-01-01 00:00:00 UTC
  • 2024-02-05 00:00:00 UTC
  • 2024-03-04 00:00:00 UTC
  • 2024-04-01 00:00:00 UTC

Watch out for

  • The day-of-month and day-of-week fields are not mutually exclusive; both conditions must be satisfied. This means the job will only run if the 1st of the month is a Monday. For example, January 1, 2024, is a Monday, so it runs, but February 1, 2024, is a Thursday, so it does not run.
  • This expression does not account for time zones. It assumes UTC unless specified otherwise.

Equivalent forms

  • 0 0 1 * MON
  • 0 0 1 * 1#1 (if using '#' to specify the first occurrence of a day-of-week in a month)

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 February 1, 2024, even though it is the 1st of the month?

Because February 1, 2024, is a Thursday, and the cron expression specifies that the job should only run if the day is a Monday (day-of-week 1).

Can I make this job run at a different time of day?

Yes, adjust the hour and minute fields. For example, '30 8 1 * 1' would run at 08:30 on the first Monday of every month.

What happens if the 1st of the month is a Sunday?

The job will not run because the day-of-week field is set to 1 (Monday). If you want it to run on Sunday as well, you would need to include 0 or 7 in the day-of-week field (e.g., '0 0 1 * 0,1').