🍋
Menu
Developer

Cron Expression

Cron Schedule Expression

A string format representing a schedule using five fields: minute, hour, day, month, and day of week.

รายละเอียดทางเทคนิค

A cron expression uses five space-separated fields: minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-7, where both 0 and 7 mean Sunday). Special characters include * (any), , (list), - (range), / (step), and some implementations add a sixth field for seconds. Common patterns: '0 */2 * * ' (every 2 hours), '0 9 * * 1-5' (weekdays at 9am), '/15 * * * *' (every 15 minutes).

ตัวอย่าง

```
# Cron expression format:
# ┌───── minute (0-59)
# │ ┌───── hour (0-23)
# │ │ ┌───── day of month (1-31)
# │ │ │ ┌───── month (1-12)
# │ │ │ │ ┌───── day of week (0-7)
# │ │ │ │ │
  0 9 * * 1-5    # Weekdays at 9:00 AM
  */15 * * * *   # Every 15 minutes
  0 0 1 * *      # First day of each month
```

เครื่องมือที่เกี่ยวข้อง

คำศัพท์ที่เกี่ยวข้อง