pbs.WorldClock.js Demo

The pbs.WorldClock API can be used to insert live clocks into a web page showing the current time in any timezone.

The clocks can be styled with CSS, allowing them to appear how ever your wish. Clocks can be explicitly craeted using the constructor, or they can be automatically initialised if they are given the appropriate CSS class.

For example, it's now in Dublin (Ireland). This first example is an a clock that has been styled to appear inline, and was explicitly created using the constructor.

Below is the current time in LA. This clock is styled as a block-level element, and was automatically initialised: