Qaynaq LABS · TOOLS

CRON · DECODE

0 0 * * 0

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

Field-by-field

PositionValueMeaning
minute 0 At the 0th minute of the hour (i.e., the top of the hour).
hour 0 At the 0th hour of the day (i.e., midnight).
day-of-month * Every day of the month.
month * Every month of the year.
day-of-week 0 On Sunday (0 or 7 in cron).

Next fires (UTC)

  • 2023-10-01 00:00:00 UTC
  • 2023-10-08 00:00:00 UTC
  • 2023-10-15 00:00:00 UTC
  • 2023-10-22 00:00:00 UTC
  • 2023-10-29 00:00:00 UTC

Watch out for

  • Day-of-week '0' and '7' are treated as the same day (Sunday) in most cron implementations, but some systems may require consistency (e.g., always use '0').
  • This does not account for daylight saving time changes if the system is not in UTC.

Equivalent forms

  • 0 0 * * 7
  • 0 0 * * SUN

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 midnight UTC unless the system is configured to interpret cron in a different timezone.

Can I make this run at a specific timezone?

Cron itself does not support timezones directly. You would need to adjust the cron expression or run the job in a container/service that handles timezones (e.g., Kubernetes CronJob with timezone set).

What if I want it to run every day at midnight?

Use '0 0 * * *' instead of specifying a day-of-week.