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。