Qaynaq LABS · TOOLS

CRON · DECODE

0 0 30 * *

This cron expression runs at midnight (00:00) on the 30th day of every month.

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 30 The job runs on the 30th day of the month.
month * The job runs every month, regardless of the month.
day-of-week * The job runs every day of the week, regardless of the day.

Next fires (UTC)

  • 2023-01-30 00:00:00 UTC
  • 2023-02-28 00:00:00 UTC (note: Feb has 28 days in 2023)
  • 2023-03-30 00:00:00 UTC
  • 2023-04-30 00:00:00 UTC

Watch out for

  • The 30th day of the month does not exist in months with fewer than 30 days (e.g., February, April, June, September, November). In such cases, the job will not run in those months.
  • If the intention is to run on the last day of the month, use a more robust method (e.g., 'L' in some cron implementations or a script to handle month-end logic).

Equivalent forms

  • 0 0 30 * ? (Quartz cron syntax, where '?' means 'no specific value')
  • 0 0 30 * * ? (Extended cron syntax with seconds field)

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

What happens if the month has fewer than 30 days?

The job will not run in months with fewer than 30 days (e.g., February, April, June, September, November).

Can I use this to run on the last day of the month?

No, this expression will not run on the last day of the month in months with fewer than 30 days. Consider using a different approach, such as 'L' (last day) in some cron implementations or a script to handle month-end logic.

Does this run at midnight UTC or local time?

This cron expression runs at midnight UTC unless the user specifies otherwise.