cron*/30 9-17 * * 1-5

Every 30 Minutes During Business Hours

Every 30 minutes, hour 9 through 17, on Monday through Friday

Runs every 30 minutes between 9 AM and 5 PM, Monday through Friday.

Weekdays / Business Hours17 on weekdays runs/day

Want to customize this schedule or validate your own cron expression?

Try it live →

Field Breakdown

FieldValueMeaning
minute*/30every 30th minute
hour9-17hour 9 through 17
day*every day of month
month*every month
weekday1-5Monday through Friday
*/30
minute
9-17
hour
*
day
*
month
1-5
weekday

Common Use Cases

  • Frequent business-hours checks
  • Customer queue monitoring
  • SLA compliance polling

Code Examples

Bash / crontab
# Run your script on schedule: */30 9-17 * * 1-5
*/30 9-17 * * 1-5 /path/to/your/script.sh
Node.js (node-cron)
import cron from 'node-cron';

cron.schedule('*/30 9-17 * * 1-5', () => {
  console.log('Running scheduled task');
});
Python (APScheduler)
from apscheduler.schedulers.blocking import BlockingScheduler

scheduler = BlockingScheduler()

@scheduler.scheduled_job('cron', minute='*/30', hour='9-17', day_of_week='1-5')
def my_job():
    print('Running scheduled task')

scheduler.start()

GitHub Actions Workflow

Generate a ready-to-use .github/workflows/schedule.yml file. Customize the name and download directly.

GitHub Actions
# .github/workflows/schedule.yml
name: Every 30 Minutes During Business Hours

on:
  schedule:
    - cron: '*/30 9-17 * * 1-5'
  workflow_dispatch: # allow manual trigger

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Run scheduled task
        run: |
          echo "Running on schedule: */30 9-17 * * 1-5"
          # Add your commands here

Save as .github/workflows/schedule.yml in your repository root

Cron Syntax Quick Reference

FieldAllowed ValuesSpecial Chars
minute0–59* , - /
hour0–23* , - /
day of month1–31* , - /
month1–12 or JAN–DEC* , - /
day of week0–7 or SUN–SAT* , - /

Special characters: *= any value  ,= list  -= range  / = step

Related Patterns — Weekdays / Business Hours

Need to build your own cron expression from scratch?

Open the Cron Expression Builder →