World Clock: Track Time Across the Globe

Track time across the globe for meetings, travel, and remote work.

100+ Cities Worldwide coverage
Accurate Time Real-time updates
Plan Better For meetings & travel

Current Local Times Around the World

`; } } // Function to quickly add a city from the global search banner function quickAddCity(name, country, tz) { const newCity = { id: Date.now(), name: name, country: country, tz: tz, isStarred: false }; myCities.push(newCity); // Add it to your array searchInput.value = ''; // Clear the search bar renderGrid(); // Re-render the grid to show the new clock! } // Clock Logic function updateClocks() { const now = new Date(); myCities.forEach(city => { // Only update if card is in the DOM if (!document.getElementById(`time-${city.id}`)) return; const options = { timeZone: city.tz, hour12: true, hour: 'numeric', minute: '2-digit', second: '2-digit', weekday: 'short', day: 'numeric', month: 'short' }; const formatter = new Intl.DateTimeFormat('en-US', options); const parts = formatter.formatToParts(now); let h = 0, m = 0, s = 0, ampm = '', dateStr = ''; parts.forEach(part => { if (part.type === 'hour') h = parseInt(part.value); if (part.type === 'minute') m = parseInt(part.value); if (part.type === 'second') s = parseInt(part.value); if (part.type === 'dayPeriod') ampm = part.value; if (part.type === 'weekday') dateStr += part.value + ', '; if (part.type === 'day') dateStr += part.value + ' '; if (part.type === 'month') dateStr += part.value; }); // Digital const displayH = h < 10 && h !== 0 ? `0${h}` : (h === 0 ? 12 : h); const displayM = m < 10 ? `0${m}` : m; document.getElementById(`time-${city.id}`).innerHTML = `${displayH}:${displayM} ${ampm}`; document.getElementById(`date-${city.id}`).textContent = dateStr; // Day / Night Logic (6am to 6pm) let h24 = h; if(ampm.toLowerCase() === 'pm' && h !== 12) h24 += 12; if(ampm.toLowerCase() === 'am' && h === 12) h24 = 0; const dnEl = document.getElementById(`dn-${city.id}`); if (h24 >= 6 && h24 < 18) { dnEl.innerHTML = ` Day Time`; } else { dnEl.innerHTML = ` Night Time`; } // Analog Hands const hHand = document.getElementById(`hour-${city.id}`); const mHand = document.getElementById(`min-${city.id}`); const sHand = document.getElementById(`sec-${city.id}`); hHand.style.transform = `translateX(-50%) rotate(${(h % 12) * 30 + m * 0.5}deg)`; mHand.style.transform = `translateX(-50%) rotate(${m * 6}deg)`; sHand.style.transform = `translateX(-50%) rotate(${s * 6}deg)`; }); } // Interactive Features function toggleStar(id) { const city = myCities.find(c => c.id === id); if (city) { city.isStarred = !city.isStarred; renderGrid(); } } function deleteCity(id) { if(confirm("Are you sure you want to remove this city?")) { myCities = myCities.filter(c => c.id !== id); renderGrid(); } } // Event Listeners for Filters and Views searchInput.addEventListener('input', renderGrid); filterFavoritesBtn.addEventListener('click', () => { showingFavoritesOnly = !showingFavoritesOnly; filterFavoritesBtn.classList.toggle('active'); renderGrid(); }); const gridViewBtn = document.getElementById('gridViewBtn'); const listViewBtn = document.getElementById('listViewBtn'); gridViewBtn.addEventListener('click', () => { grid.classList.remove('list-view'); gridViewBtn.classList.add('active'); listViewBtn.classList.remove('active'); }); listViewBtn.addEventListener('click', () => { grid.classList.add('list-view'); listViewBtn.classList.add('active'); gridViewBtn.classList.remove('active'); }); // Modal & City Addition Logic const modal = document.getElementById('cityModal'); const openModalBtn = document.getElementById('openAddModalBtn'); const closeModalBtn = document.getElementById('closeModalBtn'); const citySearchInput = document.getElementById('citySearchInput'); const searchResults = document.getElementById('searchResults'); const hiddenTimezone = document.getElementById('hiddenTimezone'); const nameInput = document.getElementById('customNameInput'); const countryInput = document.getElementById('customCountryInput'); const saveCityBtn = document.getElementById('saveCityBtn'); let searchTimeout; // Open/Close Modal openModalBtn.addEventListener('click', () => { modal.classList.add('active'); citySearchInput.focus(); }); closeModalBtn.addEventListener('click', closeAndResetModal); modal.addEventListener('click', (e) => { if(e.target === modal) closeAndResetModal(); }); function closeAndResetModal() { modal.classList.remove('active'); citySearchInput.value = ''; nameInput.value = ''; countryInput.value = ''; hiddenTimezone.value = ''; searchResults.classList.remove('active'); saveCityBtn.disabled = true; } // API Call for City Search (Using Free Open-Meteo Geocoding API) citySearchInput.addEventListener('input', (e) => { const query = e.target.value.trim(); // Clear previous timeout (Debouncing so we don't spam the API on every single keystroke) clearTimeout(searchTimeout); if (query.length < 2) { searchResults.classList.remove('active'); return; } searchTimeout = setTimeout(async () => { try { const response = await fetch(`https://geocoding-api.open-meteo.com/v1/search?name=${query}&count=5&language=en&format=json`); const data = await response.json(); searchResults.innerHTML = ''; if (data.results && data.results.length > 0) { data.results.forEach(place => { // Only show places that actually have a timezone attached if(!place.timezone) return; const div = document.createElement('div'); div.className = 'search-result-item'; // Format region (e.g. State/Province) if it exists const region = place.admin1 ? `${place.admin1}, ` : ''; div.innerHTML = ` ${place.name} ${region}${place.country} • ${place.timezone} `; // When user clicks a search result div.addEventListener('click', () => { // Auto-fill the form citySearchInput.value = place.name; nameInput.value = place.name; countryInput.value = place.country; hiddenTimezone.value = place.timezone; // Store the tz behind the scenes // Hide dropdown and enable save button searchResults.classList.remove('active'); saveCityBtn.disabled = false; }); searchResults.appendChild(div); }); searchResults.classList.add('active'); } else { searchResults.innerHTML = '
No cities found
'; searchResults.classList.add('active'); } } catch (error) { console.error("Error fetching city data:", error); } }, 400); // Wait 400ms after typing stops before calling API }); // Hide dropdown if clicked outside document.addEventListener('click', (e) => { if (!citySearchInput.contains(e.target) && !searchResults.contains(e.target)) { searchResults.classList.remove('active'); } }); // Save City saveCityBtn.addEventListener('click', () => { if(!hiddenTimezone.value) return; // Prevent saving if no timezone selected const newCity = { id: Date.now(), name: nameInput.value, country: countryInput.value, tz: hiddenTimezone.value, isStarred: false }; myCities.push(newCity); closeAndResetModal(); renderGrid(); }); // Start the app (Keep these from your previous file) renderGrid(); setInterval(updateClocks, 1000);

World Clock – Check Current Time Around the World Instantly

Keeping track of time across different countries can be challenging, especially when working with international clients, managing remote teams, planning travel, or staying connected with family and friends abroad. Our World Clock tool helps you instantly check the current local time in cities and countries around the globe.

Whether you need to know the time in New York, London, Tokyo, Sydney, Dubai, or any other major city, this tool provides accurate and up-to-date time information in real time.

What Is a World Clock?

A world clock is a simple tool that displays the current local time in different cities and time zones worldwide. Since the Earth is divided into multiple time zones, different locations experience different local times at the same moment.

Instead of manually calculating time differences, a world clock automatically shows the correct time for each location, making international communication and scheduling much easier.

Why Use a World Clock?

People use world clocks for many different reasons:

Business and Remote Work

Many companies work with clients, freelancers, and employees located in different countries. A world clock helps you schedule meetings and avoid contacting someone outside their working hours.

International Travel Planning

Travelers often need to know the current time at their destination before booking flights, planning hotel check-ins, or arranging transportation.

Family and Friends Abroad

If you have relatives or friends living overseas, checking their local time can help you choose the best moment to call or message them.

Online Events and Webinars

Many virtual conferences, webinars, and online events are announced in a specific time zone. A world clock allows you to quickly convert and verify the event time for your location.

Financial Markets and Trading

Stock market traders and investors often monitor market opening and closing times in different countries. A world clock makes it easier to track global financial centers.

Understanding Time Zones

A time zone is a region of the world that follows the same standard time. Time zones are generally measured relative to Coordinated Universal Time (UTC).

For example:

  • UTC+0 – London (during standard time)
  • UTC+1 – Berlin
  • UTC+5:30 – India Standard Time (IST)
  • UTC+8 – Singapore
  • UTC+9 – Tokyo
  • UTC-5 – New York (during standard time)

Knowing the UTC offset helps people coordinate activities across different countries and regions.

How to Use This World Clock Tool

Using our world clock is simple:

  1. Search for a city or country.
  2. View the current local time instantly.
  3. Compare times across multiple locations.
  4. Plan meetings, travel schedules, or online events.
  5. Stay updated with accurate real-time information.

The tool automatically displays the latest time without requiring manual calculations.

Benefits of Using an Online World Clock

Real-Time Accuracy

The clock updates automatically, ensuring that you always see the correct local time.

Easy Time Zone Comparison

Compare multiple cities side by side to find the most convenient meeting time.

No Manual Conversion Required

Avoid errors caused by calculating time differences yourself.

Available Anywhere

Access the world clock from your computer, tablet, or smartphone whenever you need it.

Helpful for Global Communication

Coordinate effectively with people in different countries and time zones.

Popular Cities Frequently Checked

Some of the most searched locations on world clock tools include:

  • New York
  • London
  • Paris
  • Dubai
  • Tokyo
  • Singapore
  • Sydney
  • Toronto
  • Los Angeles
  • Mumbai
  • Delhi
  • Hong Kong

These cities serve as major business, travel, and communication hubs around the world.

Daylight Saving Time (DST)

Certain countries adjust their clocks during specific periods of the year through Daylight Saving Time (DST). During DST, clocks are typically moved forward by one hour and later returned to standard time.

Not all countries observe DST. Therefore, time differences between cities may change throughout the year. Our world clock automatically accounts for these adjustments when applicable.

Frequently Asked Questions

Is the World Clock accurate?

Yes. The tool displays real-time local time information based on current time zone data.

Can I compare multiple cities?

Yes. You can view and compare times from different cities around the world.

Does the clock update automatically?

Yes. The displayed time updates automatically to provide current information.

What is UTC?

UTC stands for Coordinated Universal Time, the global standard used to regulate clocks and time zones worldwide.

Why do some countries have different time offsets?

Countries choose time zones based on their geographic location and governmental standards. Some regions use half-hour or quarter-hour offsets instead of full hours.

Is the World Clock accurate?

Yes. The tool displays real-time local time information based on current time zone data.

Can I compare multiple cities?

Yes. You can view and compare times from different cities around the world.

Does the clock update automatically?

Yes. The displayed time updates automatically to provide current information.

What is UTC?

UTC stands for Coordinated Universal Time, the global standard used to regulate clocks and time zones worldwide.

Why do some countries have different time offsets?

Countries choose time zones based on their geographic location and governmental standards. Some regions use half-hour or quarter-hour offsets instead of full hours.

Final Thoughts

A reliable world clock is an essential tool for anyone who works, travels, communicates, or collaborates internationally. By providing accurate real-time information for cities across the globe, our World Clock helps simplify scheduling, improve productivity, and eliminate confusion caused by time zone differences.

Use the tool anytime you need to check the current time anywhere in the world and stay connected across borders with confidence.