cron-scheduler

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Cron Scheduler Tool

Cron 调度工具

Description

功能描述

Parse, validate, and explain cron expressions. Calculate next run times and generate cron syntax.
解析、验证并解释cron表达式,计算下次运行时间并生成cron语法。

Trigger

触发场景

  • /cron
    command
  • User needs cron expression help
  • User wants to schedule tasks
  • /cron
    命令
  • 用户需要cron表达式相关帮助
  • 用户想要安排定时任务

Usage

使用方法

bash
undefined
bash
undefined

Explain cron expression

Explain cron expression

python scripts/cron_scheduler.py "0 9 * * 1-5"
python scripts/cron_scheduler.py "0 9 * * 1-5"

Get next N run times

Get next N run times

python scripts/cron_scheduler.py "*/15 * * * *" --next 5
python scripts/cron_scheduler.py "*/15 * * * *" --next 5

Generate cron from description

Generate cron from description

python scripts/cron_scheduler.py --generate "every day at 9am"
python scripts/cron_scheduler.py --generate "every day at 9am"

Validate expression

Validate expression

python scripts/cron_scheduler.py "0 0 * * *" --validate
undefined
python scripts/cron_scheduler.py "0 0 * * *" --validate
undefined

Tags

标签

cron
,
scheduler
,
automation
,
time
,
jobs
cron
,
scheduler
,
automation
,
time
,
jobs

Compatibility

兼容性

  • Codex: ✅
  • Claude Code: ✅
  • Codex: ✅
  • Claude Code: ✅