Калькулятор часовых поясов

Конвертируйте время между странами с учетом смещения UTC.

// about

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

Выберите исходный город и город назначения, введите местное время — и вы увидите соответствующее местное время со смещением UTC.

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

  1. Выберите страну и город, к которым относится исходное время.
  2. Выберите пункт назначения и введите дату и время.
  3. Нажмите «Преобразовать время», чтобы увидеть время назначения и смещение.

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

  • Планируйте международные встречи без подсчёта часовых поясов в уме.
  • Учитывает правила перехода на летнее время, если их предоставляет операционная система.
  • Показывает момент в UTC, чтобы команды могли проверить пересчёт.
Руководства · Дата и время · 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 "Калькулятор часовых поясов" that meets the requirements below.

## Goal

Build a tool that shows a date and time from one zone in several other time zones.

## Core features

- Enter a base zone, date and time
- Add or remove cities (IANA zones)
- Show UTC offset and whether DST applies
- Highlight overlapping office hours (09–18)
- Copy the result table

## Inputs

- Base zone, date and time
- List of zones to compare

## Outputs

- Local date and time per zone
- Offset from the base zone

## Edge cases and handling rules

- Clearly mark date changes (+1 day, −1 day)
- Offset changes around DST start and end
- Half- and quarter-hour offsets (India, Nepal)
- Use IANA names rather than fixed offsets

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

- 2026-01-15 09:00 Asia/Seoul → 2026-01-14 19:00 America/New_York
- 2026-07-15 09:00 Asia/Seoul → 2026-07-14 20:00 America/New_York
- Asia/Kolkata is +05:30

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-timezone-calculator/SKILL.md, чтобы агенты вроде Claude Code использовали его при каждой доработке инструмента.

---
name: build-timezone-calculator
description: Use when building or changing a Калькулятор часовых поясов tool. Build a tool that shows a date and time from one zone in several other time zones.
---

# Build: Калькулятор часовых поясов

## Goal

Build a tool that shows a date and time from one zone in several other time zones.

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

- Enter a base zone, date and time
- Add or remove cities (IANA zones)
- Show UTC offset and whether DST applies
- Highlight overlapping office hours (09–18)
- Copy the result table

## Inputs

- Base zone, date and time
- List of zones to compare

## Outputs

- Local date and time per zone
- Offset from the base zone

## Rules

- Clearly mark date changes (+1 day, −1 day)
- Offset changes around DST start and end
- Half- and quarter-hour offsets (India, Nepal)
- Use IANA names rather than fixed offsets
- 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

- [ ] 2026-01-15 09:00 Asia/Seoul → 2026-01-14 19:00 America/New_York
- [ ] 2026-07-15 09:00 Asia/Seoul → 2026-07-14 20:00 America/New_York
- [ ] Asia/Kolkata is +05:30

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

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