Clock Widget

Written by: •

Preview

The date is shown in each visitor's own language.

Settings
Clock
Style
Show
Colours
Background
Text
Accent

Paste it into the HTML of your page or into a Custom HTML block (WordPress) or an HTML widget. You can add several clocks to one page; the script is needed only once.

How to Add a Clock to Your Website

Pick a city, a country, a US state or a Canadian province, choose a digital or analog clock and a style, and set the width and the details you want to show. The preview on the left is the real widget, so what you see is exactly what will appear on your site.

Press Copy code and paste the code into the HTML of your page. In WordPress, use a Custom HTML block or an HTML widget. To show several cities, create one code per clock; the script line is needed only once on the page.

The clock always shows the current local time of the place you chose, for every visitor, wherever they are. The date appears in the visitor’s own language.

Widget Options

  • Digital or analog: large digits with seconds, or a classic dial with optional numbers
  • Five styles: light, dark, gold, white or transparent to match your design
  • Your colours: set the background, text and accent colour
  • Width: a fixed width from 160 to 600 pixels, or the full width of your content column
  • Details: seconds, date, 12-hour or 24-hour time, and the UTC offset
  • Title: any text, for example the name of your office or team

Light, Private and Always Correct

The widget is one small script of about 4 KB when compressed. It does not set cookies, does not track visitors and makes no further requests after it loads.

It is drawn in an isolated block, so the styles of your site cannot break the clock and the clock cannot change the look of your page.

Times are calculated in the visitor’s browser from the IANA time zone database, so daylight saving changes are applied automatically. The clock is right as long as the visitor’s device clock is right.

Where a Clock Widget Helps

  • Company websites: show the local time at your office next to your opening hours
  • Remote teams: put the time of each team location on an internal page
  • Travel and hotel sites: show the time at the destination
  • Online events: show the organiser’s local time next to the schedule
  • Blogs and forums: let readers see the time where you live
↑
✕Close Menu