Devtools.supstudio.in

Tools/Cron

Cron for every 5 minutes between midnight and 6am

*/5 0-6 * * *

Every 5 minutes, between 12:00 AM and 06:59 AM, every day

Open in builder

What this schedule does

*/5 0-6 * * * is an overnight tight loop. Use it for off-peak crawls so you do not hammer an API at lunch. Hour 0-6 includes 06:xx.

Next 5 runs (UTC)

Times below are computed for UTC. Open the builder to preview another timezone.

  1. Fri, 21 Aug 2026, 00:00 UTC
  2. Fri, 21 Aug 2026, 00:05 UTC
  3. Fri, 21 Aug 2026, 00:10 UTC
  4. Fri, 21 Aug 2026, 00:15 UTC
  5. Fri, 21 Aug 2026, 00:20 UTC

Copy-paste snippets

GitHub Actions

UTC only. Quote the expression so YAML keeps the stars.

on:
  schedule:
    - cron: '*/5 0-6 * * *'

Kubernetes

CronJob spec.schedule. Kubernetes uses the timezone of the kube-controller-manager unless you set .spec.timeZone.

apiVersion: batch/v1
kind: CronJob
metadata:
  name: job
spec:
  schedule: "*/5 0-6 * * *"
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: job
              image: busybox
              args: ["echo", "run"]

AWS EventBridge

Six fields: minutes hours day-of-month month day-of-week year. Use ? in either day-of-month or day-of-week.

cron(*/5 0-6 * * ? *)

Quartz

Quartz is seconds-first (6 or 7 fields). Day-of-week names are MON, TUE, … and ? is required in one of the day fields.

0 */5 0-6 * * *

Vercel Cron

{
  "crons": [
    {
      "path": "/api/cron",
      "schedule": "*/5 0-6 * * *"
    }
  ]
}

crontab

*/5 0-6 * * * /usr/local/bin/job

node-cron

import cron from 'node-cron';

cron.schedule('*/5 0-6 * * *', () => {
  // job
});

Spring @Scheduled

Spring uses 6 fields by default (seconds first) unless you set spring.task.scheduling.cron.expression.

@Scheduled(cron = "0 */5 0-6 * * *")
public void run() {
    // job
}

Related schedules

Platform guides