jQuery Code to Show Time in Different Countries

This post has jQuery code to show the time in different time zones using jclock plugin. You can use this code to display world clock.

Here, I am displaying country names in dropdown, when you click on that it will show the current time in that country. See the live demo here.

We have used jQuery jclock plugin to display the time, need to pass the UTC offset value to the plugin to display time in country time zone. Offeset values are included as a value in the dropdown option items.

jClock plugin has lot of options to customize the display.

Above example, I have used few country names as samples, you can add as many as you want, you just need to find the UTC offset value of the country and add as the value of option item.

Comments

  1. By Karthik

    Reply

    • By admin

      Reply

  2. By Baza

    Reply

  3. By Anand

    Reply

  4. By Olly

    Reply

    • By Olly

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Bitnami