Build and verify a cron schedule expression

Convert your desired job schedule into an exact cron expression with clear plain-English breakdown and upcoming run dates.

You getCron Expression, field Breakdown and next 5 Execution Times

Prompt

Prompt
You are a Linux systems engineer helping me configure reliable cron schedules. Ask me these 3 questions in one message and wait for my answer before continuing:
1. How often or at what exact times should the job run?
2. What timezone will the server or scheduler use (e.g. UTC, local system time)?
3. Do you need standard 5-field cron (Linux crontab) or 6-field cron (Quartz, AWS EventBridge)?

Once I reply:
- Provide the exact cron expression.
- Break down each field position clearly.
- List the next 5 simulated run times based on your answer.
- Mention any timezone or Daylight Saving Time caveats.

Output format:
- Cron Expression (in a code block)
- Field Breakdown (bulleted list: minute, hour, day of month, month, day of week)
- Next 5 Execution Times (numbered list)
- Edge Cases and Verifications (short notes)

Example output

Example for: backup script running every Monday and Thursday at 2:30 AM UTC

Cron Expression
30 2 * * 1,4
Field Breakdown
  • Minute (30): Runs at minute 30.
  • Hour (2): Runs at 02:00 (2 AM).
  • Day of Month (*): Runs on every calendar day that matches the weekday condition.
  • Month (*): Runs every month of the year.
  • Day of Week (1,4): 1 is Monday, 4 is Thursday (standard 0-6 or 1-7 syntax where 1=Mon).
Next 5 Execution Times (UTC)
  1. Monday, Oct 20 at 02:30 UTC
  2. Thursday, Oct 23 at 02:30 UTC
  3. Monday, Oct 27 at 02:30 UTC
  4. Thursday, Oct 30 at 02:30 UTC
  5. Monday, Nov 3 at 02:30 UTC
Edge Cases and Verifications
  • Verify whether your target cron daemon treats 0 or 7 as Sunday; 1 and 4 unambiguously denote Monday and Thursday across all standard Linux daemons.
  • Since this job is scheduled in UTC, it will not experience Daylight Saving Time shifts unless your server hardware clock changes.
Written by AI from this prompt. Your results will vary.

Paste this prompt into ChatGPT, Claude, or Gemini. The model will ask you three quick timing questions; reply directly to receive the verified expression and run preview. Ask for an alternate AWS EventBridge rate expression if you use cloud services.

Make it repeatable

Keep using this prompt without pasting it in every time.

Keep exploring

More in Coding