Qaynaq LABS · TOOLS

CRON · DECODE

0 0 31 5 *

This cron expression runs a job at midnight (00:00) on May 31st every year.

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 31 The job runs on the 31st day of the month.
month 5 The job runs in May (the 5th month).
day-of-week * The day of the week is ignored (any day of the week).

Next fires (UTC)

  • 2024-05-31 00:00:00 UTC
  • 2025-05-31 00:00:00 UTC
  • 2026-05-31 00:00:00 UTC

Watch out for

  • May 31st does not exist in all years (e.g., February 31st is invalid, but May 31st is always valid).
  • If the job is intended to run on the last day of May, consider using 'L' in the day-of-month field (e.g., '0 0 L 5 *') to avoid issues with months that have fewer than 31 days.

Equivalent forms

  • 0 0 31 5 ? * (using '?' to explicitly ignore day-of-week)
  • 0 0 31 May *

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

Why does the day-of-week field have a '*'?

The '*' in the day-of-week field means the job will run regardless of the day of the week, as the day-of-month field (31) is more specific.

What happens if May 31st falls on a weekend?

The job will still run at midnight on May 31st, regardless of whether it is a weekend or weekday.