Cron-Ausdruck-Generator

Erzeugen Sie stündliche, tägliche, wöchentliche und monatliche Crontab-Ausdrücke.

// about

Über dieses Tool

Cron beschreibt mit fünf Feldern, wann ein Linux-Befehl ausgeführt werden soll. Dieser Generator macht aus vertrauten Wiederholungsoptionen einen sofort kopierbaren Ausdruck.

So verwenden Sie es

  1. Wählen Sie, wie oft der Job wiederholt wird.
  2. Geben Sie die für diesen Zeitplan angezeigten Zeit- und Kalenderwerte an.
  3. Kopieren Sie den erzeugten Ausdruck und setzen Sie ihn vor Ihren Shell-Befehl.

Warum dieses Tool genutzt wird

  • Praktisch, wenn man sich die Cron-Syntax nicht merken kann.
  • Erzeugt standardmäßige Linux-crontab-Ausdrücke mit fünf Feldern.
  • Kopieren Sie das Ergebnis direkt in eine Crontab-Datei oder ein Deployment-Skript.
Ratgeber · Datum & Zeit · 8 Min. Lesezeit

Unix-Zeitstempel erklärt: Sekunden oder Millisekunden, Zeitzonen und das Jahr-2038-Problem

Wann ist 1700000000? Warum verwenden manche Systeme 13-stellige Zahlen? Warum ist die Uhrzeit um genau eine Stunde verschoben? Die meisten Zeitfehler verschwinden, sobald man ein paar Konzepte verstanden hat.

Ein Unix-Zeitstempel (Unixzeit, Epoch-Zeit) ist eine einzelne Ganzzahl, die die Sekunden seit dem 1. Januar 1970, 00:00:00 UTC, der Unix-Epoche, zählt. 0 ist 1970-01-01 00:00:00 UTC und 1700000000 ist 2023-11-14 22:13:20 UTC.

0           → 1970-01-01 00:00:00 UTC
1700000000  → 2023-11-14 22:13:20 UTC
1735689600  → 2025-01-01 00:00:00 UTC
2147483647  → 2038-01-19 03:14:07 UTC
Unix-Zeitstempel: 10- oder 13-stellige Werte, Umrechnung zwischen UTC und Ortszeit, Fallstricke der Sommerzeit und das Jahr-2038-Problem.
Ratgeber lesen →
Mit KI bauen

Dieses Tool selbst mit KI bauen

Sie möchten eine eigene Version? Kopieren Sie den Arbeitsauftrag in einen KI-Chat oder speichern Sie die Skill-Datei für einen KI-Coding-Agenten. Beide enthalten die Funktionen, Sonderfälle und Testfälle, die wir verwendet haben.

Prompt und Skill sind auf Englisch, das KI-Tools in jeder Sprache gut verstehen.

KI-Arbeitsauftrag (Prompt)

Unverändert in Claude, ChatGPT oder Gemini einfügen.

You are an experienced full-stack web developer. Build a web tool called "Cron-Ausdruck-Generator" that meets the requirements below.

## Goal

Build a tool that creates and explains standard five-field cron expressions from a chosen schedule.

## Core features

- Schedule picker (every N minutes, hourly, daily, weekly, monthly)
- Plain-language description of the expression
- Preview of the next five run times
- Time zone selection (UTC, Asia/Seoul, …)
- Parse an expression typed by the user

## Inputs

- Schedule type and minute/hour/weekday/day values
- Time zone

## Outputs

- Cron expression
- Description
- Next run times

## Edge cases and handling rules

- Warn that setting both day fields means OR
- Explain steps that do not divide evenly, such as */45
- Validate out-of-range values like minute 60
- Explain run-time differences on UTC servers

## Implementation requirements

- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.
- Make the UI responsive and easy to use on mobile; label every input and keep everything keyboard accessible.
- Add a Copy button for results and show clear, friendly error messages for invalid input.
- Keep the core logic in functions separate from the UI so it can be unit-tested.

## Definition of done (test cases)

- Daily at 02:00 gives '0 2 * * *'
- Weekdays at 09:30 give '30 9 * * 1-5'
- '*/15 * * * *' runs every 15 minutes

First outline your implementation plan in at most five lines, then write the complete code, and finally explain how to check the test cases above.

Skill (SKILL.md)

Als .claude/skills/build-cron-generator/SKILL.md speichern, damit Agenten wie Claude Code es bei jeder Änderung am Tool wiederverwenden.

---
name: build-cron-generator
description: Use when building or changing a Cron-Ausdruck-Generator tool. Build a tool that creates and explains standard five-field cron expressions from a chosen schedule.
---

# Build: Cron-Ausdruck-Generator

## Goal

Build a tool that creates and explains standard five-field cron expressions from a chosen schedule.

## Workflow

1. Review the required features, inputs and outputs below and ask about anything missing first.
2. Implement the core logic as pure functions separate from the UI.
3. Check the logic against the test cases in the verification list.
4. Build a responsive UI with an input form, a result area and a Copy button.
5. Reproduce each edge case listed under Rules and refine the error messages.

## Core features

- Schedule picker (every N minutes, hourly, daily, weekly, monthly)
- Plain-language description of the expression
- Preview of the next five run times
- Time zone selection (UTC, Asia/Seoul, …)
- Parse an expression typed by the user

## Inputs

- Schedule type and minute/hour/weekday/day values
- Time zone

## Outputs

- Cron expression
- Description
- Next run times

## Rules

- Warn that setting both day fields means OR
- Explain steps that do not divide evenly, such as */45
- Validate out-of-range values like minute 60
- Explain run-time differences on UTC servers
- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.

## Verification

- [ ] Daily at 02:00 gives '0 2 * * *'
- [ ] Weekdays at 09:30 give '30 9 * * 1-5'
- [ ] '*/15 * * * *' runs every 15 minutes

Tipps für die Arbeit mit KI

  • Nennen Sie in der ersten Zeile Ihren Stack (React, Vue oder reines HTML), damit der Code passt.
  • Lassen Sie die KI die Testfälle ausführen und die Ergebnisse zeigen, bevor Sie den Code übernehmen.
  • Fügen Sie keine echten Passwörter, Kundendaten oder API-Schlüssel ein; nutzen Sie Beispielwerte.