Cron表达式构建器
以可视化方式创建cron调度表达式。针对接下来的运行时间进行测试。
0 * * * *如何使用本工具
- 1
Type a value into each of the five fields: Minute, Hour, Day (of month), Month, and DOW (day of week).
- 2
Use cron syntax inside any field: * for every value, a number like 9, a range like 1-5, a step like */15, or a list like 1,15.
- 3
Or click a preset such as 'Weekdays at 8am' to fill all five fields at once, then tweak as needed.
- 4
Read the assembled expression in the preview box and press Copy to put it on your clipboard for crontab or your scheduler.
什么是Cron表达式构建器?
Cron是Unix系统中用于调度周期性任务的标准语法。其格式包含五个字段:分钟、小时、日、月和星期。现代系统将其扩展为六个字段(增加了秒)。本构建器帮助你无需记忆语法即可编写表达式。
常见使用场景
Schedule a nightly database backup to run at a quiet hour, for example 0 3 * * * for 3am every day.
Configure a GitHub Actions or GitLab CI workflow that runs on a cron trigger without hand-counting the fields.
Set up a Kubernetes CronJob or a serverless scheduled function and paste the expression into the schedule field.
Build a weekday-only reminder or report job, like 0 8 * * 1-5 for 8am Monday through Friday.
Create a high-frequency polling task such as */5 * * * * to check a queue or endpoint every five minutes.
Generate a monthly billing or cleanup expression like 0 0 1 * * that fires at midnight on the first of each month.
常见问题
'*/5 * * * *'是什么意思?▼
如何让任务只在工作日运行?▼
相关工具
JWT解码器
即时解码JSON Web Token(JWT)。完全在你的浏览器中运行:令牌绝不会离开你的设备,可安全用于生产环境的密钥。
JSON格式化与校验工具
在线格式化、校验和压缩JSON。完全在你的浏览器中运行:你的数据永远不会离开你的设备。
XML格式化工具
格式化并美化XML文档。适用于SOAP、站点地图、RSS订阅源和配置文件。
Base64编码与解码工具
将字符串编码为Base64,或将Base64解码为文本。尊重你的隐私:全部在你的浏览器中运行。
URL编码与解码工具
将文本转换为URL安全的编码(百分号编码),或进行反向转换。适用于查询字符串、重定向和OAuth流程。
HTML实体编码与解码工具
将特殊字符转换为HTML实体(&、<等),或进行反向转换。适用于将文本安全地嵌入HTML。