Генератор Cron

Создавайте выражения crontab для запуска по часам, дням, неделям и месяцам.

// about

Об этом инструменте

Cron описывает время запуска команды Linux пятью полями. Генератор превращает привычный выбор повторяющегося расписания в готовое к копированию выражение.

Как использовать

  1. Выберите, как часто задание должно повторяться.
  2. Укажите время и календарные значения, показанные для этого расписания.
  3. Скопируйте полученное выражение и поставьте его перед командой оболочки.

Зачем используют этот инструмент

  • Удобно, когда трудно запомнить синтаксис cron.
  • Создаёт стандартные выражения crontab Linux из пяти полей.
  • Результат можно сразу скопировать в файл crontab или скрипт развёртывания.
Руководства · Дата и время · 8 мин чтения

Метки времени Unix: секунды или миллисекунды, часовые пояса и проблема 2038 года

Когда наступает 1700000000? Почему некоторые системы используют 13-значные числа? Почему время сдвинулось ровно на три часа? Большинство ошибок со временем исчезает, если разобраться в нескольких понятиях.

Метка времени Unix (Unix-время, epoch time) — это одно целое число, равное количеству секунд, прошедших с 00:00:00 UTC 1 января 1970 года, то есть с эпохи Unix. 0 — это 1970-01-01 00:00:00 UTC, а 1700000000 — 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: 10 или 13 цифр, перевод между UTC и местным временем, ловушки летнего времени и проблема 2038 года.
Читать →
Сделать с ИИ

Создайте этот инструмент сами с помощью ИИ

Нужна своя версия? Скопируйте промпт в чат с ИИ или сохраните файл навыка для ИИ-агента. В них описаны функции, особые случаи и тесты, которые мы использовали.

Промпт и навык даны на английском — ИИ-инструменты хорошо его понимают.

Промпт-задание для ИИ

Вставьте как есть в Claude, ChatGPT или Gemini.

You are an experienced full-stack web developer. Build a web tool called "Генератор Cron" 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.md)

Сохраните как .claude/skills/build-cron-generator/SKILL.md, чтобы агенты вроде Claude Code использовали его при каждой доработке инструмента.

---
name: build-cron-generator
description: Use when building or changing a Генератор Cron tool. Build a tool that creates and explains standard five-field cron expressions from a chosen schedule.
---

# Build: Генератор Cron

## 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

Советы по работе с ИИ

  • Укажите стек (React, Vue или чистый HTML) в первой строке, чтобы код подошёл к проекту.
  • Попросите ИИ выполнить перечисленные тесты и показать результаты до принятия кода.
  • Не вставляйте настоящие пароли, данные клиентов и API-ключи; используйте примеры.