ToolConvoyToolConvoyv2.6
dev

Cron 速查表

常见 cron 表达式及读法:每分钟、每小时、每天、每周、每月,以及特殊情形。

广告

最常用模式

模式 表达式 含义
每一分钟 * * * * * 每分钟一次
每小时 0 * * * * 整点
每 15 分钟 */15 * * * * 0/15/30/45 分
每天午夜 0 0 * * * 0:00
工作日早 9 点 0 9 * * 1-5 周一至周五 9:00
每月第一日 0 0 1 * * 每月 1 日 0:00

工具

Cron Generator 在你的浏览器里可视化编辑五个字段,列出接下来 5 次触发时间。

陷阱

  • 日与星期同时非 * 时为 OR,不是 AND
  • 系统时区会影响触发表
  • 2 月 29 日的 cron 通常因’仅非闰年触发’被跳过

信息

不同实现对扩展(L、W、#)的支持不同;POSIX cron 严格只用五字段。

广告

使用方法

  1. Open the tool

    Open the relevant tool linked below in your browser. The page handles everything client-side.

常见问题

Does this upload my file?

No. All ToolConvoy tools process files in your browser; nothing is uploaded to a server.

广告