World Clock
Live clock for any number of cities — picked from the Open-Meteo geocoder and ticking against your browser's IANA tz database. Day/night badge computed with the NOAA solar algorithm; 12 / 24-hour toggle, show-seconds toggle, drag-friendly re-order. Free, private, browser-only.
What is the World Clock?
A world clock keeps the current time across multiple cities visible at a glance. Toollyz World Clock ships with 8 default cities (New York, London, Berlin, Dubai, Mumbai, Singapore, Tokyo, Sydney) and lets you add as many more as you want via the open-source Open-Meteo geocoder — your browser hits the geocoder directly, Toollyz has no server in the path. Each city card shows the live time formatted in the city's IANA timezone (`Intl.DateTimeFormat` uses your browser's tz database so DST transitions match the OS), the local date and the UTC offset (computed from the actual `formatToParts` output so daylight-saving offsets are correct), plus a day / night badge calculated by running the NOAA Solar Position Algorithm on the city's coordinates — the card background gradients from amber for daytime cities to indigo for night-time ones. The top hero shows your own location with a Use my location button. Toggle 12 / 24-hour formatting and whether to show seconds (when seconds are off the clock ticks once every 30 seconds to save CPU). Re-order cards with Up / Down buttons. Settings save to localStorage on this device only.
How to use it
- Search for a city or tap Use my location to add it.
- Re-order the cards with Up / Down buttons so the most important cities appear first.
- Toggle 12 / 24-hour and show-seconds; the day/night badge updates as the sun sets in each city.
- Remove cards you don't need with the trash icon.
Benefits
- Live tick (1 Hz with seconds, 30 s without) so the cards stay fresh without spinning the CPU.
- IANA timezones via `Intl.DateTimeFormat` — DST and historical offsets match your OS.
- Day / night badge computed offline via the NOAA solar algorithm using each city's coordinates.
- Card background gradient hints at the day/night state (amber for day, indigo for night).
- Open-Meteo geocoder for city search — browser-side direct, no Toollyz server.
- Browser Geolocation API for adding your own location at the top of the list.
- 12 / 24-hour and show-seconds toggles persist per device.
- 100% private — settings save to localStorage; only city searches leave the browser.
Frequently asked questions
How accurate is the timezone data?
It uses your browser's built-in IANA tz database (`Intl.DateTimeFormat`). Modern browsers ship a recent copy of the tz database, so DST transitions, historical offsets and political timezone changes match your OS. If a country redefines its timezone tomorrow, you'll need to update your browser to pick up the new rules.
Where do new cities come from?
Open-Meteo (`https://geocoding-api.open-meteo.com`). It's a free, key-less, CORS-enabled geocoder with 200k+ cities. Your browser calls it directly; Toollyz has no server in the path.
How is the day / night badge calculated?
Each city card runs the NOAA Solar Position Algorithm on its coordinates and the current date. If the current UTC instant is between sunrise and sunset for that city, the badge says Day; otherwise Night. Polar day and polar night are detected explicitly.
Why does the seconds toggle change the tick rate?
When seconds are shown, the clock has to repaint every second; when they're hidden, repainting once every 30 seconds is enough. The longer interval saves a bit of CPU and battery on idle tabs.
Can the clock tick when the tab is in the background?
Browsers throttle `setInterval` to ~1 minute in background tabs. The displayed time may lag briefly when you return to the tab; the very next tick recalculates from `Date.now()` so the lag never accumulates.
Why does the UTC offset show the right value across DST?
The offset is computed from `Intl.DateTimeFormat.formatToParts` — Toollyz formats the current instant in the target timezone, treats the result as if it were UTC, and subtracts. The difference is the correct DST-aware offset.
Does it support timezones without coordinates?
The city cards always include coordinates because the day/night badge requires them. If you need to track a bare timezone (no specific city), pick the capital city for that timezone — the time will be identical.
Are my cities synced across devices?
No — they're stored in localStorage on this device only. Toollyz has no backend; nothing is uploaded or synced. Add the same list on each device.
Can I add my own location?
Yes — click Use my location to share your GPS coordinates with the page. The browser asks for permission first; Toollyz uses the coordinates locally and never sends them anywhere.
Is this World Clock free?
Completely free with no signup and no limits. Track as many cities as you like — privately in your browser.
Related tools
See all calculators toolsSunrise & Sunset Time
NOAA solar position offline; civil / nautical / astronomical twilights.
Alarm Clock
Multiple alarms, four WebAudio tones, custom days, snooze.
Stopwatch
Start / stop / lap / reset, sub-millisecond accurate, CSV export.
Calendar Generator
Generate printable calendars for any year or month.