Cron Expression Tool
常用预设
每分钟
每小时
每天午夜
每周日午夜
每月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
| Expression | Description |
|---|---|
* * * * * | Every minute |
0 * * * * | Every hour on the hour |
0 0 * * * | Every day at midnight |
0 9 * * 1-5 | Weekdays at 9 AM |
*/5 * * * * | Every 5 minutes |
0 0 1 * * | 1st of every month at midnight |
0 0 * * 0 | Every 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 timescron_build- Build Cron expression from field values
See Toolbox MCP Service for details.