Qaynaq LABS · TOOLS

CRON · DECODE

0 0 * * 5

This cron expression runs a job at midnight (00:00) every Friday (day-of-week 5) 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 of the year.
day-of-week 5 The job runs on Friday (5 represents Friday in the cron day-of-week field).

Next fires (UTC)

  • 2023-11-03 00:00:00 UTC
  • 2023-11-10 00:00:00 UTC
  • 2023-11-17 00:00:00 UTC
  • 2023-11-24 00:00:00 UTC

Watch out for

  • If the system timezone is not UTC, the job will still run at 00:00 UTC, which may not align with local midnight.
  • Day-of-week 5 is Friday; ensure no confusion with day-of-month (e.g., 5th day of the month).

Equivalent forms

  • 0 0 * * FRI
  • 0 0 * * 5#1 (if you want the first Friday of the month)
  • 0 0 * * 5-5 (redundant but equivalent)

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 every Friday or only on the 5th day of the month?

This runs every Friday, regardless of the day-of-month. The day-of-week field (5) takes precedence over the day-of-month field (*) in cron.

What happens if I set both day-of-month and day-of-week to specific values?

Cron uses an OR logic: the job runs if either the day-of-month OR the day-of-week matches. For example, '0 0 5 * 5' would run on the 5th day of the month AND every Friday.

Can I use 'FRI' instead of '5' for readability?

Yes, many cron implementations support 'FRI' (or other day names) for the day-of-week field. This is equivalent to '5'.