Qaynaq LABS · TOOLS

CRON · DECODE

0 0 * * 4

This cron expression runs a job at midnight (00:00) every Thursday (day-of-week 4) 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 (midnight).
day-of-month * The job runs every day of the month.
month * The job runs every month.
day-of-week 4 The job runs on Thursday (4 represents Thursday in cron).

Next fires (UTC)

  • 2023-11-02 00:00:00 UTC
  • 2023-11-09 00:00:00 UTC
  • 2023-11-16 00:00:00 UTC
  • 2023-11-23 00:00:00 UTC
  • 2023-11-30 00:00:00 UTC

Watch out for

  • If the system's timezone is not UTC, the job will still run at 00:00 UTC, which may not align with local midnight.
  • The day-of-week field (4) and day-of-month field (*) are independent; the job runs on every Thursday regardless of the day-of-month.

Equivalent forms

  • 0 0 * * 4 UTC
  • 0 0 * * THU

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 at midnight local time or UTC?

This runs at 00:00 UTC unless specified otherwise. If local time is required, the timezone must be explicitly defined in the cron system.

Can I make this run at midnight local time?

Yes, but the cron expression itself does not specify timezone. You would need to configure the cron system to use the local timezone or adjust the hour/minute fields accordingly.

What if I want it to run at the start of Thursday in my local timezone?

You would need to adjust the hour and minute fields to match your local midnight (e.g., for EST, use 5 0 * * 4 for UTC-5). Alternatively, configure the cron system to use your local timezone.