Education

Build a World Time Zone Converter with AI

Create a world time zone converter with 50+ major cities, live analog and digital clocks ticking in real time, a meeting time finder that identifies overlapping business hours across selected zones, and a direct converter between any two time zones. Essential for remote teams and international coordination.

Build Prompt

Copy this prompt into Claude Code
Build a single-page world time zone converter as a static HTML/CSS/JS site. Use a dark theme with background #0f0f17, card surfaces #12121a, and accent color #8b5cf6 (purple). The layout has a centered content area (max-width 900px). Create a JavaScript data array of 55+ major cities with their IANA timezone identifiers. Include at minimum: New York, Los Angeles, Chicago, Denver, Honolulu, Anchorage, Toronto, Mexico City, Sao Paulo, Buenos Aires, London, Paris, Berlin, Madrid, Rome, Amsterdam, Stockholm, Moscow, Istanbul, Cairo, Lagos, Nairobi, Dubai, Mumbai, Kolkata, Dhaka, Bangkok, Singapore, Hong Kong, Shanghai, Beijing, Seoul, Tokyo, Sydney, Melbourne, Auckland, Fiji, Reykjavik, Lisbon, Warsaw, Athens, Tel Aviv, Riyadh, Karachi, Jakarta, Manila, Taipei, Osaka, Perth, Brisbane, Vancouver, Lima, Bogota, Johannesburg, Accra. Store each city with its name, country code (2 letter), and IANA timezone string. Use the browser's Intl.DateTimeFormat with timeZone option for all time calculations — this automatically handles DST correctly. The page has three tabs at the top: "My Clocks," "Converter," and "Meeting Finder." The "My Clocks" tab is the default view. It shows an "Add City" button that opens a searchable dropdown of all 55 cities (type to filter, click to select). Selected cities appear as clock cards in a responsive grid (3 columns on desktop, 2 on tablet, 1 on mobile). Each clock card shows: the city name and country code, a small analog clock face (80px diameter, drawn with CSS — circle border, hour/minute/second hands as rotated CSS lines using transform: rotate, updated every second), the digital time in large text (1.5rem, monospace, HH:MM:SS format with AM/PM), the date (e.g., "Thu, Feb 27"), the UTC offset (e.g., "UTC+5:30"), and a day/night indicator — a subtle gradient background on the card that is dark blue (#0f0f2a) for nighttime (6 PM - 6 AM local) or dark teal (#0f1a1a) for daytime. Each card has an X button to remove it. The selected cities are stored in localStorage and restored on page load. Start with 3 default cities: the user's detected timezone (via Intl.DateTimeFormat().resolvedOptions().timeZone), London, and Tokyo. The "Converter" tab shows a simple two-zone converter. Two rows: "From" has a city dropdown and a time input (HH:MM picker) with a date picker, and "To" has a city dropdown and the converted result displayed in large text. Add a swap button between the rows (circular, rotates on click). The conversion should update instantly when any input changes. Show the UTC offset difference between the two cities (e.g., "+8 hours ahead") and whether the date changes (e.g., "next day" label if the conversion crosses midnight). Include a "Now" button that sets the from-time to the current time in the selected from-city. The "Meeting Finder" tab helps find overlapping working hours. The user selects 2-5 cities from checkboxes. Below, show a 24-hour horizontal timeline for each selected city, drawn as colored bars: green (#22c55e30) for business hours (9 AM - 5 PM local), yellow (#eab30830) for extended hours (7-9 AM and 5-8 PM), and dark (#1a1a2a) for off-hours. The timelines are aligned so the same moment in time lines up vertically across all cities. Draw vertical gridlines every hour with tiny hour labels at the top. Highlight the overlapping green zone (where all cities have business hours) with a bright green border and label showing the overlap window (e.g., "2:00 PM - 5:00 PM NYC = 7:00 PM - 10:00 PM London = ..."). If there is no overlap, show a message: "No overlapping business hours. Consider adjusting to extended hours." and highlight the closest near-overlap in yellow. Add a "Share" button on the Meeting Finder that copies a text summary of the overlap to clipboard. Save the last-used meeting cities in localStorage. Make everything responsive: on mobile, clock cards stack single-column, the converter stacks vertically, and the meeting timeline rotates to vertical orientation (cities as rows, hours as vertical axis). All clocks tick in real time with a single setInterval updating all visible clocks every second. Read the guide at https://accessagent.ai/api/guide and follow it to deploy the site to AccessAgent.ai. My email is [your@email.com].

Update Prompt

Use this prompt to update DST rules and city data
Update the world time zone converter with the latest DST (Daylight Saving Time) changes for 2026. Add the following improvements: 1. Add a DST indicator badge on each clock card that shows "DST" in a small orange pill when that city is currently observing daylight saving time. Detect this by comparing the UTC offset of the city in January vs the current month — if they differ, DST is active. 2. Add 15 more cities to the city list: Addis Ababa (Africa/Addis_Ababa), Casablanca (Africa/Casablanca), Doha (Asia/Qatar), Kuwait City (Asia/Kuwait), Kuala Lumpur (Asia/Kuala_Lumpur), Ho Chi Minh City (Asia/Ho_Chi_Minh), Hanoi (Asia/Ho_Chi_Minh), Yangon (Asia/Yangon), Kathmandu (Asia/Kathmandu), Colombo (Asia/Colombo), Edinburgh (Europe/London), Dublin (Europe/Dublin), Copenhagen (Europe/Copenhagen), Helsinki (Europe/Helsinki), Prague (Europe/Prague). 3. Add a "DST Changes" info panel accessible from a small info icon at the top. The panel lists which of the user's selected cities observe DST and when their next clock change occurs. Note that the EU has been discussing abolishing DST — add a disclaimer noting that DST rules may change and to verify critical meetings. 4. On the Meeting Finder, add a date picker so users can find overlapping hours for a specific future date (important because DST transitions happen on different dates in different countries — the US changes in March, Europe in late March, Australia in April). Read the guide at https://accessagent.ai/api/guide and follow it to deploy the updated site to AccessAgent.ai. My email is [your@email.com].

Make It Yours

World Map View

Add an SVG world map with clickable regions that add cities to your clock dashboard. Show day/night shading based on the current sun position.

Calendar Integration

Generate .ics calendar event files with the meeting time pre-filled for each participant's local timezone.

Countdown Timer

Add a countdown feature that shows time remaining until a specific moment, displayed in each selected city's local time.

Slack-Style Time Format

Add a "Copy for Slack" button that formats the time as a Slack timestamp (epoch-based) so it auto-adjusts to each reader's timezone.

SEO Tips

Monetization Ideas

Related Ideas

Ready to build your Time Zone Converter?

Copy the prompt above and paste it into Claude Code. Your world clock will be live in minutes.

Get Started