Qaynaq LABS · TOOLS

CRON · DECODE

0 0 * * 2

This cron expression runs a job at midnight (00:00) every Tuesday in UTC.

Field-by-field

PositionValueMeaning
minute 0 The job runs at the 0th minute of the hour.
hour 0 The job runs at the 0th hour of the day (midnight).
day-of-month * The job runs every day of the month.
month * The job runs every month.
day-of-week 2 The job runs on Tuesdays (where 0 and 7 are Sunday, 1 is Monday, 2 is Tuesday, etc.).

Next fires (UTC)

  • 2023-11-07 00:00:00 UTC
  • 2023-11-14 00:00:00 UTC
  • 2023-11-21 00:00:00 UTC
  • 2023-11-28 00:00:00 UTC

Watch out for

  • If the system timezone differs from UTC, adjust accordingly. The day-of-week field (2) takes precedence over day-of-month (*), so it will only run on Tuesdays regardless of the day-of-month value.

Equivalent forms

  • 0 0 * * TUE
  • 0 0 * * 2-2

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 the last Tuesday of the month?

Yes, it will run on the last Tuesday of the month if that day exists.

Can I make it run at a specific time other than midnight?

Yes, change the hour and/or minute fields. For example, '30 2 * * 2' would run at 02:30 every Tuesday.

What if I want it to run on both Tuesday and Wednesday?

Use '0 0 * * 2,3' or '0 0 * * 2-3'.