タイムゾーン計算機

国や都市間の時差を考慮して日時を変換します。

// about

ツールについて

変換元と変換先の都市を選び、現地の時刻を入力すると、対応する現地時刻とUTCオフセットが表示されます。

使い方

  1. 元の時刻が属する国と都市を選びます。
  2. 変換先を選び、日付と時刻を入力します。
  3. 「時刻を変換」を押すと、変換先の時刻とオフセットが表示されます。

このツールが使われる理由

  • 頭の中でタイムゾーンを計算せずに、国際会議の日程を調整できます。
  • OSが提供する場合は、夏時間のルールも考慮されます。
  • UTCの時刻も表示されるので、チームで変換結果を確認できます。
ガイド · 日付・時刻 · 4分で読めます

Unixタイムスタンプ徹底解説:秒とミリ秒、タイムゾーン、2038年問題

1700000000 はいつなのか。なぜ13桁の数字を使うシステムがあるのか。なぜ時刻がちょうど9時間ずれるのか。いくつかの概念を押さえれば、時刻にまつわるバグの多くは消えます。

Unixタイムスタンプ(Unix時間、エポック秒)は、1970年1月1日 00:00:00 UTC、つまりUnixエポックからの経過秒数を数えた1つの整数です。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年問題までを解説します。
ガイドを読む →
AIで作る

このツールをAIで自作してみましょう

自分用のバージョンが必要なら、作業指示プロンプトをAIチャットに貼り付けるか、スキルファイルをAIコーディングエージェントに保存してください。私たちが開発時に整理した機能、例外、テストケースが含まれています。

プロンプトとスキルは英語で提供しています。AIツールはどの言語でもよく理解できます。

AI作業指示プロンプト

Claude、ChatGPT、GeminiなどのAIチャットにそのまま貼り付けてください。

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 CodeなどのAIコーディングエージェントで .claude/skills/build-timezone-calculator/SKILL.md に保存すると、このツールを作る・直すたびに再利用できます。

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

AIに任せるときのコツ

  • 最初の行に使用技術(React、Vue、素のHTMLなど)を書くと、プロジェクトに合ったコードになります。
  • コードを受け取る前に、テストケースを実行して結果を見せるよう依頼しましょう。
  • 本物のパスワード、顧客データ、APIキーは入力せず、サンプル値を使ってください。