Skip to main content

Cron Expression Tool

Cron 表达式

*
分钟
0-59
*
小时
0-23
*

1-31
*

1-12
*
星期
0-6

常用预设

每分钟
每小时
每天午夜
每周日午夜
每月1日午夜
工作日上午9点
每5分钟
每10分钟
每30分钟
每天0点和12点

语法参考

符号含义示例
*任意值* * * * *
,列表分隔1,15 * * * *
-范围1-5 * * * *
/步长*/5 * * * *

How to Use

Expression Mode

Enter a Cron expression directly, and the tool will validate it in real-time, showing:

  • Whether the expression is valid
  • Human-readable execution description
  • Next 10 execution times

Visual Builder

Select values for each field using dropdown menus to automatically generate the corresponding Cron expression.

Cron Expression Format

A standard Cron expression consists of 5 fields:

┌───────────── minute (0 - 59)
│ ┌───────────── hour (0 - 23)
│ │ ┌───────────── day of month (1 - 31)
│ │ │ ┌───────────── month (1 - 12)
│ │ │ │ ┌───────────── day of week (0 - 6, 0 = Sunday)
│ │ │ │ │
* * * * *

Common Examples

ExpressionDescription
* * * * *Every minute
0 * * * *Every hour on the hour
0 0 * * *Every day at midnight
0 9 * * 1-5Weekdays at 9 AM
*/5 * * * *Every 5 minutes
0 0 1 * *1st of every month at midnight
0 0 * * 0Every Sunday at midnight

MCP Service

This tool is integrated into the Gongju.dev MCP service. AI assistants can call it directly:

  • cron_parse - Parse Cron expression, get description and next execution times
  • cron_build - Build Cron expression from field values

See Toolbox MCP Service for details.