About This Tool

What is Cron Expression Generator?

A tool for visually building cron expressions and previewing next execution times. Essential for correctly writing cron expressions when setting up scheduled tasks on Linux servers.

How to Use

  1. Set each field: minute, hour, day, month, and day of week.
  2. Or select from presets (every minute, hourly, daily, etc.).
  3. Review the generated cron expression.
  4. Verify settings with the next execution times list.

Key Features

  • Visual cron expression builder
  • Presets (every minute, hourly, daily, etc.)
  • Next execution times preview
  • Automatic expression description

Tips

  • Cron expression order is: minute hour day month weekday.
  • */5 means 'every 5' (e.g., */5 * * * * = every 5 minutes).
  • Both 0 and 7 represent Sunday in the weekday field.

Cron Expression Generator

Visually build cron expressions and check next execution times

At minute 0 of every hour

Next Executions

1.4/22/2026, 7:00:00 AM
2.4/22/2026, 8:00:00 AM
3.4/22/2026, 9:00:00 AM
4.4/22/2026, 10:00:00 AM
5.4/22/2026, 11:00:00 AM

Frequently Asked Questions

什么是cron表达式?

cron表达式是由五个字段(分、时、日、月、星期几)组成的字符串,定义Unix/Linux系统中的重复任务计划。例如'0 9 * * 1-5'表示'每个工作日上午9:00'。用于自动备份、日志清理、定时邮件等。

cron中的特殊字符*、/、-和,是什么意思?

* = '每个'(任意值)。*/ = '每N'(如*/5 = 每5)。- = 范围(如1-5 = 周一到周五)。, = 多个值(如1,15 = 1日和15日)。可组合用于复杂的计划安排。

如何设置特定时区的cron作业?

标准cron表达式不包含时区信息——按系统配置的时区运行。指定时区可在crontab中使用TZ环境变量(如TZ=America/New_York 0 9 * * *)或在任务调度器中配置时区。此工具显示的下次执行时间使用浏览器的本地时区。


Related Tools