Qaynaq LABS · TOOLS

CRON · DECODE

0 0 * * 2-6

This cron expression runs a job every day at midnight (00:00) from Tuesday to Saturday (inclusive).

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 * The job runs every day of the month, regardless of the day number.
month * The job runs every month of the year.
day-of-week 2-6 The job runs from Tuesday (2) to Saturday (6), inclusive.

Next fires (UTC)

  • 2023-10-03 00:00:00 UTC (Tuesday)
  • 2023-10-04 00:00:00 UTC (Wednesday)
  • 2023-10-05 00:00:00 UTC (Thursday)
  • 2023-10-06 00:00:00 UTC (Friday)
  • 2023-10-07 00:00:00 UTC (Saturday)
  • 2023-10-09 00:00:00 UTC (next Tuesday)

Watch out for

  • This expression does not run on Sunday (0 or 7) or Monday (1).
  • If the job is intended to run on weekdays (Monday-Friday), the correct expression would be '0 0 * * 1-5'.

Equivalent forms

  • 0 0 * * 2,3,4,5,6
  • 0 0 * * 2,3,4,5,6 (same as original)

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

Does this run on weekends?

No, this expression runs from Tuesday to Saturday, so it does not run on Sunday or Monday.

What if I want it to run every day?

Use the expression '0 0 * * *' to run every day at midnight.

Can I specify a timezone?

The cron expression itself does not include timezone information. It runs in UTC by default. To specify a timezone, you would need to configure the scheduler (e.g., in a systemd timer or a cron daemon) to use a different timezone.