一键重装系统工具 | U盘启动盘制作工具 | 误删文件恢复软件 | 硬盘数据抢救专家 | 电脑蓝屏修复助手 | C盘空间清理神器 | 电脑驱动离线安装工具 | 微信聊天记录恢复工具 | 照片误格式化恢复 | 电脑密码破解清除工具 | 系统崩溃紧急救援盘 | 电脑加速优化大师 | 电脑开不了机怎么重装系统 | 回收站清空了怎么恢复 | 硬盘分区丢失数据恢复 | 电脑卡顿重装系统有用吗 | U盘插入提示格式化数据恢复 | 电脑中毒文件被隐藏恢复 | 忘记电脑开机密码怎么办 | 新硬盘分区对齐工具 | 旧电脑装Win10流畅工具 | SD卡照片删除恢复免费版 | 移动硬盘打不开提示损坏修复 | 电脑无故重启系统修复工具 | 电脑小白一键重装神器 | 程序员电脑环境配置助手 | 设计师电脑字体/素材恢复工具 | 网吧网管系统维护工具箱 | 财务人员电脑发票备份恢复 | 学生党免费电脑系统安装包 | 电脑维修师傅必备工具盘 | 游戏玩家电脑性能优化助手 | 办公白领误删文档恢复软件 | 自媒体视频素材恢复工具 | 网课录制视频损坏修复工具 | 最好的U盘PE系统排名 | 数据恢复软件哪个最强 | 免费电脑助手与收费版区别 | 国产装机工具哪款无广告 | 离线版驱动助手推荐 | 轻量级电脑优化工具对比 | 支持NVMe驱动的PE工具 | 带网络功能的应急启动盘 | 2026最新版万能装机工具 | 支持Win11 24H2的PE工具 | 最新免激活系统重装工具 | 2026数据恢复软件破解版合集 | 纯净无捆绑装机助手V3.0 | 支持苹果M芯片的电脑助手 | 秋季更新版系统维护工具箱 | 电脑系统崩了怎么用U盘把重要资料拷贝出来 | 重装系统前哪些文件夹必须备份 | 固态硬盘误格式化还能恢复数据吗 | 如何制作一个既带PE又能存数据的双分区U盘 | 电脑总是弹窗广告用什么助手彻底拦截 后台管理
📢 欢迎访问系统之家!所有资源均经过安全检测。

Cron Calculator – Cron Expression Generator & Explainer

发布时间:2026-09-17 | 浏览:2
📥 下载地址(文章开头)
装机神器,一键装机,安装任何系统。纯净版,原版,软件版,精简版,英文版。
Generate, explain, and validate cron expressions, with the next run times in any timezone. In Plain English What your cron expression actually means. Upcoming Executions Preview the next 50 times this schedule will trigger . Cron Syntax Reference A cron expression has five space-separated fields: minute hour day month weekday . Each field controls when the job runs. For example, 0 0 * * * runs at midnight daily, 0 0 * * 1 runs at midnight every Monday, and 0 0 * * 1-5 runs at midnight on weekdays. Special Characters * — matches any value , — list multiple values (e.g., 1,3,5 ) - — define a range (e.g., 1-5 ) / — specify intervals (e.g., */15 for every 15) Shorthand Aliases Most crontab implementations accept these shortcuts, and so does this calculator: @hourly — same as 0 * * * * @daily — same as 0 0 * * * (also @midnight ) @weekly — same as 0 0 * * 0 @monthly — same as 0 0 1 * * @yearly — same as 0 0 1 1 * (also @annually ) Common Examples 0 0 * * * Every day at midnight */15 9-17 * * 1-5 Every 15 minutes during work hours, Mon-Fri 0 12 * * 0 Every Sunday at noon 0 0 1 * * On the first day of every month at midnight 0 18 * * 5 Every Friday at 6 PM Browse all common cron expressions → Cron is a time-based job scheduler found in Unix-like operating systems. A cron expression defines when a task should run using a compact five-field format. You'll find cron expressions in Linux servers, AWS CloudWatch, GitHub Actions, Kubernetes CronJobs, and most CI/CD platforms. They're powerful but notoriously hard to read—that's why we built this tool. Common Cron Job Use Cases Database backups — Schedule nightly or weekly backups of your database Log rotation — Clean up old log files to free disk space Email reports — Send daily or weekly summary emails Cache clearing — Periodically clear application caches
📥 下载地址(文章中间)
装机神器,一键装机,安装任何系统。纯净版,原版,软件版,精简版,英文版。
Data sync — Synchronize data between services at regular intervals Health checks — Monitor system health every few minutes CI/CD pipelines — Trigger scheduled builds and deployments Cron Tips & Best Practices Avoid midnight congestion — Many jobs run at 0 0 * * * . Stagger your jobs to reduce server load. Use specific times — 0 3 * * * (3 AM) is often better than midnight for maintenance tasks. Consider timezones — Cron runs in the scheduler's timezone, which is usually UTC on servers. Use the timezone picker above to preview run times before you deploy. Watch uneven steps — */7 * * * * looks like every 7 minutes, but the gap from minute 56 back to 0 is only 4 minutes. Test with shorter intervals — When debugging, use */5 * * * * (every 5 min) before switching to the final schedule. Log your jobs — Always redirect output to a log file for debugging. Use absolute paths — Cron doesn't load your shell profile, so always use full paths to commands and scripts. Frequently Asked Questions What's the difference between 5-field and 6-field cron? Standard cron uses 5 fields (minute, hour, day of month, month, day of week). Quartz and Spring add a 6th field for seconds at the beginning. This tool accepts both and warns you when a 6-field expression won't be portable to standard crontab, GitHub Actions, or Kubernetes. Is Sunday 0 or 7? Both work in most implementations. Sunday is typically 0, with Saturday as 6. Many systems, including this tool, also accept 7 for Sunday. How do I run a cron job every 2 hours? Use 0 */2 * * * to run at minute 0 of every 2nd hour (midnight, 2 AM, 4 AM, and so on). Because 24 divides evenly by 2, the spacing stays even across midnight. Why does my cron job run on days I didn't expect? If you restrict both day of month and day of week, cron combines them with OR, not AND. For example 0 0 1 * 1 runs on the 1st of the month AND on every Monday, not only on Mondays that fall on the 1st. To require both conditions, restrict one field and check the other inside your script. Can I run a cron job on the last day of the month? Standard cron doesn't support 'last day of month' directly. You'll need a workaround script that checks the date, or an extended implementation such as Quartz that supports the L character. Does */7 really run every 7 minutes? Not across the hour boundary. Steps restart each cycle, so */7 fires at minutes 0, 7, 14, 21, 28, 35, 42, 49, and 56 — then the next run is at minute 0, only 4 minutes later. No list of minutes can fix that either, since 60 isn't a multiple of 7. Use a step that divides 60 evenly (5, 6, 10, 12, 15, 20 or 30), or move the job to a loop or a systemd timer if the exact interval matters. Can cron run every 30 seconds (or every 10 seconds)? Not directly — one minute is the smallest unit in standard cron. The usual workaround is two crontab lines that both run every minute, with the second one delayed: * * * * * /path/to/job and * * * * * sleep 30; /path/to/job . Every 10 seconds would need six lines with sleep 10 through 50, at which point a long-running loop or a scheduler with a seconds field (Quartz and Spring accept */30 * * * * * ) is the better tool. How do I run a cron job every two weeks? Cron has no 'every N weeks': day-of-month steps restart on the 1st, so */14 doesn't give a clean fortnight. Run weekly and let the command skip alternate weeks: 0 9 * * 1 [ $(expr $(date +\%s) / 604800 \% 2) -eq 0 ] && /path/to/job splits Unix time into 7-day blocks and only runs in the even ones. The backslashes matter — crontab treats a bare % as a newline. The same trick with 86400 instead of 604800 gives every other day. How do I run a cron job every 90 minutes? No single expression can, because 90 doesn't divide an hour or a day evenly. Two lines cover it exactly: 0 0-21/3 * * * fires at 00:00, 03:00, 06:00 and so on, and 30 1-22/3 * * * fires at 01:30, 04:30, 07:30 and so on. Together that's every 90 minutes, including across midnight. Where do I put a cron expression once I have it? On Linux and macOS, run crontab -e to edit your user's crontab. Each line is an expression followed by the command, for example 0 3 * * * /usr/local/bin/backup.sh , and crontab -l lists what's installed. Cron doesn't load your shell profile, so use full paths. On CI and cloud platforms the expression goes into config instead — the export menu above formats it for GitHub Actions, Kubernetes, AWS EventBridge, and Vercel. What timezone do cron expressions use? Cron expressions have no timezone of their own — they're interpreted in whatever timezone the scheduler runs in, which is usually UTC on servers and CI platforms. GitHub Actions is always UTC. This calculator lets you preview run times in any timezone so you can check before you deploy.
📥 下载地址(文章结尾)
装机神器,一键装机,安装任何系统。纯净版,原版,软件版,精简版,英文版。