GlobaleGratuito

Spiegazione delle espressioni cron e orari delle prossime esecuzioni

Incolla un’espressione cron a cinque campi, come */15 9-17 * * 1-5 o @daily, per vedere cosa significa ogni campo e gli orari delle prossime esecuzioni in UTC a partire da una data a tua scelta. Supporta elenchi, intervalli, passi e nomi di mesi e giorni.

I tuoi dati restano in questa scheda. Non riceviamo i tuoi file, i testi incollati né i valori dei calcoli.

Dati

Suggerimento: premi Ctrl + Enter per eseguire

Il tuo risultato

Il risultato apparirà qui.

Per ora la guida dettagliata qui sotto è disponibile solo in inglese.

Informazioni su questo strumento

Cron schedules power backups, reports, cleanup jobs and reminders on servers everywhere, but five cryptic fields like */15 9-17 * * 1-5 are easy to misread. A single wrong field can mean a job runs every minute instead of every hour, or never at all. This explainer breaks the expression into its fields (minute, hour, day of the month, month and day of the week), describes each one in words and lists the next times the job will run.

It understands the standard crontab features: lists (1,15), ranges (9-17), steps (*/15 or 0-30/10), month and weekday names (JAN, MON) and the @daily, @weekly, @monthly, @yearly and @hourly shortcuts. Run times are given in UTC from a start date and time you choose, which is how most servers run cron.

Come si usa

  1. Paste the cron expression, for example 0 2 * * 0 or @daily.
  2. Set the date and time (UTC) to count from, such as the next deployment.
  3. Choose how many upcoming runs to list, up to 20.
  4. Run it and read the field-by-field description and the list of next run times.

Come funziona il calcolo

Each field is expanded into the set of values it allows: * means every value, a-b a range, x/n every n-th value, and commas join parts. Day-of-week 0 and 7 both mean Sunday. A minute matches when its month, hour and minute are in their sets and the day matches: if both day fields are restricted, classic (Vixie) cron accepts either one; otherwise both must match. The explainer steps forward day by day and lists the matching minutes after the start time.

a run happens at every minute that matches all five fields; when both day fields are restricted, either may match

Esempio pratico

A team schedules a health check with */15 9-17 * * 1-5 and wants to know when it first runs after 08:00 UTC on Monday, November 2, 2026. The explainer reads it as every 15 minutes, hours 09:00 to 17:00, Monday to Friday, and lists 09:00, 09:15, 09:30, 09:45 and 10:00 UTC that morning. The last run each day is at 17:45, not 17:00, a detail that often surprises people.

Esempio di input e risultato

*/15 9-17 * * 1-5: ogni 15 minuti dalle 09:00 alle 17:45, dal lunedì al venerdì (UTC)

Limiti

  • Five-field crontab syntax only; no seconds, years or Quartz symbols (?, L, W, #).
  • Run times are calculated in UTC and ignore daylight-saving changes in local server time.
  • Searches up to about eight years ahead; schedules such as 0 0 30 2 * that never occur are reported.

Ultimo aggiornamento:

Domande frequenti

Che cosa significa */15 in cron?

Ogni 15 unità di quel campo, a partire dal suo valore minimo: nel campo dei minuti significa i minuti 0, 15, 30 e 45.

Perché il mio job viene eseguito in più giorni del previsto?

Quando i campi giorno del mese e giorno della settimana sono entrambi limitati, il cron classico esegue il job quando corrisponde uno dei due. Imposta uno dei due su * per richiedere solo l’altro.

Domande frequenti

What time zone does cron use?

The time zone of the server or the CRON_TZ setting, which is often UTC. This explainer lists runs in UTC; convert them with the UTC time converter if your server uses local time.

How do I run a job every weekday at 9 a.m.?

Use 0 9 * * 1-5: minute 0, hour 9, any day of the month, any month, Monday to Friday.

Does it support seconds or the Quartz ? and L symbols?

No. It reads the standard five-field crontab format; six- and seven-field Quartz or Spring expressions need a different tool.

Risoluzione dei problemi

It says the expression must have five fields.

Separate the fields with single spaces and remove any command text after the schedule.

It says the schedule never runs.

Check impossible dates, such as day 30 or 31 in February, or day 31 in a 30-day month only.

Privacy & Gratuito

I miei dati vengono salvati?

I tuoi dati restano in questa scheda. Non riceviamo i tuoi file, i testi incollati né i valori dei calcoli.

Questo strumento è gratuito?

Sì. Non servono registrazione né pagamento.

Elaborato nel tuo browser

Passi successivi utili