utc2local

1.0.1 • Public • Published

utc2local.js

utc2local.js is a jQuery plugin that converts UTC(+00:00) time to the user's browser local time.

Installation

NPM

npm i utc2local

Usage

<p><span class="datetime">2013-01-27 10:34:13</span></p>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="utc2local.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $('.datetime').utc2local();
  });
</script>

Package Sidebar

Install

npm i utc2local

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.83 kB

Total Files

4

Last publish

Collaborators

  • jerrywu1981