jQuery Local Time Plugin For Your International Visitors - localtime
File Size: | 117 KB |
---|---|
Views Total: | 1757 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
Local Time is a super simple jQuery plugin that displays a time in the correct timezone for the viewer; ideal for international visitors of your web site. The plugin allows you to customize the time output format using data-localtime-format
attribute.
Basic Usage:
1. Include jQuery library and jQuery Local Time Plugin on the web page
<script src="http://code.jquery.com/jquery-latest.min.js"></script> <script src="../src/jquery.localtime.js"></script>
2. The html
The local time of 2010-12-12 19:27:00Z is <span data-localtime-format="dd MMM, yyyy HH:mm">2010-12-12 19:27:00Z</span>
Change log:
v0.9.1 (2014-01-12)
- support for <time> tag
This awesome jQuery plugin is developed by GregDThomas. For more Advanced Usages, please check the demo page or visit the official website.