Digital Clock Widget
Add a large, readable digital clock to your website showing your visitors' own time or the time in any city, with the date and the current UTC offset underneath.
Live preview
Exactly what your visitors will seeUnder the widget on your page: Powered by A2Z Tools
Embed code
<iframe src="https://a2z.tools/embed/w/digital-clock" title="Digital Clock by A2Z Tools" width="100%" height="310" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>
A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.
<div data-a2z-widget="digital-clock" data-height="310"></div> <script async src="https://a2z.tools/embed.js"></script>
Adds a small script (what it does) that sizes the widget to fit its content, loads it lazily and keeps it isolated from your page's CSS.
Works with
How it works
The clock formats the current moment in the chosen IANA time zone using the browser's built-in time-zone database, which already knows every daylight-saving rule, so the display changes correctly on the night clocks go forward or back. It checks the time four times a second and only redraws when the displayed second changes, which keeps the seconds in step with the real second boundary. Visitors can switch between 12- and 24-hour time; screen readers get the time and date as text, updated once a minute rather than every second.
Method
- Displayed time = Intl.DateTimeFormat(timeZone = IANA zone).format(now), recomputed on every tick
- UTC offset = wall-clock time in the zone - UTC time at the same instant
- Without v_zone the visitor's own device zone is used
Limitations
- No alarm, stopwatch or chime - it only displays the time.
- Month and weekday names follow the visitor's browser language, so a Hindi-language browser shows Devanagari month names while the digits stay Latin.
- Tenths of a second are never shown; the display changes on whole seconds only.
- One zone per clock; for a list of cities use the World Clock, and for converting a planned time use the Time Zone Converter.
- If the device clock is wrong the display is wrong; the widget does not correct it from a time server.
Where publishers use it
- A company intranet or status page showing head-office time
- Radio, streaming and live-event pages that announce schedules in one zone
- Travel agencies showing the destination's local time next to an itinerary
- Classroom and exam pages that need a large, legible clock
Questions
Which time does it show by default?
The visitor's own local time. Add v_zone=Asia/Tokyo (any IANA name) to show a fixed city, and v_label to name it.
Can I hide the seconds or the date?
Yes: v_seconds=0 hides the seconds and v_date=0 hides the date line.
Is it accurate?
It is as accurate as the visitor's device clock, which phones and computers normally synchronise over the internet. The widget makes no network requests.
Why did the offset under the clock change?
The line shows the zone's current offset, so it moves when daylight saving starts or ends: Los Angeles shows UTC-7 in summer (PDT) and UTC-8 in winter (PST). Zones without daylight saving, such as Asia/Tokyo, always show the same offset.
Sources
- Time Zone Database (tz / zoneinfo) - IANA . Offsets and daylight-saving rules behind v_zone
- ECMAScript Internationalization API Specification (ECMA-402) - Ecma International TC39 . Intl.DateTimeFormat, which formats the digits, weekday and month in the visitor's language
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools Digital Clock https://a2z.tools/embed/digital-clock
<a href="https://a2z.tools/embed/digital-clock">A2Z Tools Digital Clock</a>
[A2Z Tools Digital Clock](https://a2z.tools/embed/digital-clock)
Digital Clock by A2Z Tools - https://a2z.tools/embed/digital-clock
Related widgets
-
A classic clock face with hour, minute and second hands for your zone or any city.
-
Live local time, date and UTC offset for up to 12 cities you choose.
-
Convert a date and time between any two time zones, with daylight-saving gaps and overlaps explained.
-
Shows Open now or Closed and when you open next, in your business's own time zone.
-
Live days, hours, minutes and seconds to a date you set, with an "event has started" message.
-
Exact age in years, months and days, totals in months, weeks and days, and the next birthday.