Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›Crontab Builder›Cron expression for every 30 minutes during business hours
Cron expression

Cron expression for every 30 minutes during business hours

Cron expression for every 30 minutes during business hours: */30 9-17 * * 1-5. Every 30 minutes from 09:00 to 17:59 on weekdays (Monday to Friday). Next run

Quick answer

To run a cron job every 30 minutes during business hours, use the cron expression */30 9-17 * * 1-5. Every 30 minutes from 09:00 to 17:59 on weekdays (Monday to Friday). Add it to your crontab as "*/30 9-17 * * 1-5 /path/to/command". Cron uses the scheduler’s time zone, which is usually UTC on servers and in GitHub Actions.

Last updated · Maintained by FreeAIToolz · How we test

Every 30 minutes from 09:00 to 17:59 on weekdays (Monday to Friday)

Open in the full Crontab Builder →

What does */30 9-17 * * 1-5 mean?

Every 30 minutes from 09:00 to 17:59 on weekdays (Monday to Friday).

FieldValueAllowedMeaning
Minute*/300–59every 30 minutes (0, 30)
Hour9-170–239, 10, 11, 12, 13, 14, 15, 16, 17
Day of month*1–31every day of month
Month*1–12every month
Day of week1-50–6 (0 = Sunday)Monday, Tuesday, Wednesday, Thursday, Friday

Example run times

If the current time were Monday 4 January 2027, 08:58 UTC, */30 9-17 * * 1-5 would next run at:

  1. Mon 4 Jan 2027, 09:00 UTC
  2. Mon 4 Jan 2027, 09:30 UTC
  3. Mon 4 Jan 2027, 10:00 UTC
  4. Mon 4 Jan 2027, 10:30 UTC
  5. Mon 4 Jan 2027, 11:00 UTC
  6. Mon 4 Jan 2027, 11:30 UTC

When to use a cron job every 30 minutes during business hours

Half-hourly reminders, queue checks and dashboard refreshes during office hours.

How to use this schedule in your scheduler

Linux crontab

Run crontab -e and add:

*/30 9-17 * * 1-5 /path/to/command >> /var/log/job.log 2>&1

GitHub Actions

on:
  schedule:
    - cron: '*/30 9-17 * * 1-5'   # UTC

Kubernetes CronJob

apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-job
spec:
  schedule: "*/30 9-17 * * 1-5"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: job
              image: busybox
              command: ["sh", "-c", "echo run"]

AWS EventBridge Scheduler

EventBridge uses six fields (with a year) and needs ? in either day-of-month or day-of-week:

cron(0/30 9-17 ? * MON-FRI *)

Spring @Scheduled (seconds first)

@Scheduled(cron = "0 */30 9-17 * * 1-5", zone = "UTC")

Node.js (node-cron)

cron.schedule('*/30 9-17 * * 1-5', () => { /* job */ }, { timezone: 'UTC' });

Vercel Cron Jobs (vercel.json)

{ "crons": [{ "path": "/api/cron", "schedule": "*/30 9-17 * * 1-5" }] }

Vercel cron jobs run in UTC, and how often they can run depends on your plan.

More cron schedules

Frequently asked questions

What is the cron expression for every 30 minutes during business hours?
Use */30 9-17 * * 1-5. Every 30 minutes from 09:00 to 17:59 on weekdays (Monday to Friday).
Which time zone does this cron schedule use?
Cron runs in the time zone of the system or service that executes it. Linux servers and cloud schedulers (GitHub Actions, Vercel, AWS EventBridge by default) normally use UTC. Many crontabs accept CRON_TZ=Area/City at the top, and Kubernetes CronJobs have a timeZone field.
What happens if the server is off at the scheduled time?
Plain cron does not catch up on missed runs. If the machine was off, that run is skipped. Use anacron, or a systemd timer with Persistent=true, if missed jobs must run after boot.
How do I test this schedule before deploying?
Paste the expression into the live checker on this page to see the next 10 run times in UTC and your local time. On Linux, check the system log (grep CRON /var/log/syslog) after the first expected run.