Qaynaq LABS · TOOLS

CRON · DECODE

0 0 1 * 0

This cron expression runs a job at midnight (00:00) on the first day of every month, regardless of the day of the week.

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 0 On Sunday (0 or 7 in cron).

Next fires (UTC)

  • 2023-11-01 00:00:00 UTC
  • 2023-12-01 00:00:00 UTC
  • 2024-01-01 00:00:00 UTC
  • 2024-02-01 00:00:00 UTC

Watch out for

  • The day-of-week field (0) is redundant here because the day-of-month field (1) takes precedence. The job will run on the 1st of the month, even if it's not a Sunday.

Equivalent forms

  • 0 0 1 * *
  • 0 0 1 * 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 day-of-week field (0) not affect the schedule?

In cron, when both day-of-month and day-of-week are specified, the job runs if either condition is met. Since day-of-month is set to 1 (first day of the month), the day-of-week field is ignored.

Can I simplify this expression?

Yes, you can remove the day-of-week field entirely, as it has no effect. The simplified form is '0 0 1 * *'.