{"_id":"timezone-picker","_rev":"6-13115a27900d23c6d68528be12d87d3f","name":"timezone-picker","description":"Select your timezone using world map","dist-tags":{"latest":"2.0.0-1"},"versions":{"1.0.0":{"name":"timezone-picker","version":"1.0.0","description":"Select your timezone using world map","main":"timezone-picker.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/kevalbhatt/timezone-picker.git"},"keywords":["jquery-timezone","select","timezone","UI","timezone","picker"],"author":{"name":"Keval Bhatt"},"license":"MIT","bugs":{"url":"https://github.com/kevalbhatt/timezone-picker/issues"},"homepage":"https://github.com/kevalbhatt/timezone-picker#readme","gitHead":"cc16d7648def7c47b4654adcadb11eb2e5495d01","_id":"timezone-picker@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.2.1","_npmUser":{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"},"dist":{"integrity":"sha512-NZGnjghI4uKkJ4e6HIQ2x0JWtMwdd9cxuq7c/nziyjz34183ns6+vIqqTTiS3sjpESARiWC94Bewfex9KQy7MQ==","shasum":"02f302bdbd6e7f5ac3c5231c9d1a963992723b15","tarball":"https://registry.npmjs.org/timezone-picker/-/timezone-picker-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDod38ecGyzDVHxl6Oeq6xcHdd8RPJCoOQFwj1cnytaUAIgUGUxhHoWXj54HsgJ9AmBDiArWSzuGAcJPG2IESegqlk="}]},"maintainers":[{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timezone-picker-1.0.0.tgz_1514135930555_0.19748814450576901"},"directories":{}},"1.0.1":{"name":"timezone-picker","version":"1.0.1","description":"Select your timezone using world map","main":"timezone-picker.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/kevalbhatt/timezone-picker.git"},"keywords":["jquery-timezone","select","timezone","UI","timezone","picker"],"author":{"name":"Keval Bhatt"},"license":"MIT","bugs":{"url":"https://github.com/kevalbhatt/timezone-picker/issues"},"homepage":"https://github.com/kevalbhatt/timezone-picker#readme","gitHead":"5e1980cd4d2e66d34a4daf772e75ba03b7a5e15e","_id":"timezone-picker@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.2.1","_npmUser":{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"},"dist":{"integrity":"sha512-QbP8hDgkaXTkpVqyYeiM9Ksr/BdJl0UNQDJ2PBf0ipZwKuPrJP4sqWtyrHzBC34bldpHbUMOJF7lTUfKp8icgg==","shasum":"4a6e8edf23fc86f0fc27fff5ddb3de0e424d4741","tarball":"https://registry.npmjs.org/timezone-picker/-/timezone-picker-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/9safgfkINq5UzLpfSXIvPWYeu1/LpvYl0OpTHmzCDQIgb6xRdUrvq1BsCPj+V1GS8Eb2oc5iFCmjeIIttNDv1DY="}]},"maintainers":[{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timezone-picker-1.0.1.tgz_1514137913845_0.8380857999436557"},"directories":{}},"1.0.2":{"name":"timezone-picker","version":"1.0.2","description":"Select your timezone using world map","main":"timezone-picker.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/kevalbhatt/timezone-picker.git"},"keywords":["jquery-timezone","select","timezone","UI","timezone","picker"],"author":{"name":"Keval Bhatt"},"license":"MIT","bugs":{"url":"https://github.com/kevalbhatt/timezone-picker/issues"},"homepage":"https://github.com/kevalbhatt/timezone-picker#readme","dependencies":{"npm":"^5.7.1"},"gitHead":"4140b26e738bf4707b568c8f6720fc97dc569c2d","_id":"timezone-picker@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"},"dist":{"integrity":"sha512-MwoyEj3uJBeSj+mdZAJc3seR0XvoWJ1DYNSV3qi6Ng276Tw/bVL9qu1YTw/Ixbh2uOvzSk2UmmZ0/V2gQ0cGmQ==","shasum":"42569bcbd168f998ed4903d95249ac7ff3a0d915","tarball":"https://registry.npmjs.org/timezone-picker/-/timezone-picker-1.0.2.tgz","fileCount":6,"unpackedSize":262631,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkQwh7j5EeutSRIw0k+GxQ6K1ILnaNS4FFfB8KtChAiwIhAIGmJS7GFSNms4+AHBhtTd82cA8KifnJQSSu51pgGIT/"}]},"maintainers":[{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timezone-picker_1.0.2_1520000562361_0.084764609527191"},"_hasShrinkwrap":false},"2.0.0-0":{"name":"timezone-picker","version":"2.0.0-0","description":"Select your timezone using world map","main":"dist/timezone-picker.min.js","scripts":{"dev":"cross-env NODE_ENV=development webpack-dev-server --progress --inline --hot --open --mode development","prod":"cross-env NODE_ENV=production webpack --mode production "},"repository":{"type":"git","url":"git+https://github.com/kevalbhatt/timezone-picker.git"},"keywords":["jquery-timezone","select","timezone","UI","timezone","picker"],"author":{"name":"Keval Bhatt"},"license":"MIT","bugs":{"url":"https://github.com/kevalbhatt/timezone-picker/issues"},"homepage":"https://github.com/kevalbhatt/timezone-picker#readme","dependencies":{"jquery":"^3.3.1","moment-timezone":"^0.5.17","select2":"^4.0.6-rc.1"},"devDependencies":{"babel":"^6.23.0","babel-core":"^6.26.3","babel-loader":"^7.1.4","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-module-resolver":"^3.1.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.5","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","clean-webpack-plugin":"^0.1.19","cross-env":"^5.1.6","css-loader":"^0.28.11","expose-loader":"^0.7.5","extract-text-webpack-plugin":"^4.0.0-beta.0","html-webpack-plugin":"^3.2.0","node-sass":"^4.9.0","sass-loader":"^7.0.3","webpack":"^4.12.0","webpack-cli":"^3.0.3","webpack-dev-server":"^3.1.4"},"gitHead":"ca2433a44287fa5aff568f9f4b481a512957437c","_id":"timezone-picker@2.0.0-0","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"},"dist":{"integrity":"sha512-mbcZv+5LpdQodwr4YguSnlxSgNkHmjuKUtZlVXZLd8iehMv0BxH1jkDFonfIx5lOpbMg07xwzssxh5UYVxKNYA==","shasum":"6884f098b6cf483dd4c0059e76e0da6398980af0","tarball":"https://registry.npmjs.org/timezone-picker/-/timezone-picker-2.0.0-0.tgz","fileCount":15,"unpackedSize":289726,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbM4KICRA9TVsSAnZWagAA5cgP/25n42g24fM4aWJBR4iW\ngLpKqbb9p7RPhAnHT9Lc06BAaM8T0P8q5XKDlQDvJVidkaRKo/gKkZV1/dmi\ncGuBlgudURJ12Kw6ulA47fZHndzVFeg/7YXDlOpP6rUH7T58OlenZBRayQ8C\neEycqfvzd2eCgU29iSQDTDhuQVtilJJ38/qU8OufNnoJVr4ijLS7RCzAo2lP\ng8riiF5Zm2vxrpmpRY8u4rAwb39qim3NI5n6704nFZAigYFR7szbZ60+ZdSn\nnpm8tBmhpcZXPMTDL/M95OssxfbcnatvTIRVO+ZbG8dexQvctb35xrtpHslk\nK6ZfJ2mCnB5YBH2PvFHCoTKB6sXA87HdWzby7M1/okfz/Sxt0cWInZ7vsRvq\notDXU7GtDINyISqD8bjhHQSJ9kUMUmzCJUXvtk2WkgDDgVFVFVdXxv/IOa3b\nUjEi9ARjQoLmXhrZI91E4yapHDErs50eiBZi96SYaW+qhlSIKYMvLVsY7SI5\nhCB/2dBoqo+mmXP/EJG18KHXOlrrzqNYMxbw3l1ZnRr4SQV0nEgrKUPqVaqp\naxuiJ1n68+zVAtXFvq9eQclSlUIaZjCya11KuV2v1oeqvnHAbziVjLhDjY2i\na0JbqEX24P4cT7gLyK/o7edIMe3eOPaP74a139mkFXWzMk1nvCqYGsvMlKat\nebP8\r\n=4AsJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClas55zp3SznIfbYbd7DOFClMWFkt2jHbgetTuDV7QoAIhAPHAfivAAqO+CQiqNSAAMecj6mwEZshypHNnAq6pqj0i"}]},"maintainers":[{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timezone-picker_2.0.0-0_1530102408511_0.8666458977566436"},"_hasShrinkwrap":false},"2.0.0-1":{"name":"timezone-picker","version":"2.0.0-1","description":"Select your timezone using world map","main":"dist/timezone-picker.min.js","scripts":{"dev":"cross-env NODE_ENV=development webpack-dev-server --progress --inline --hot --open --mode development","prod":"cross-env NODE_ENV=production webpack --mode production "},"repository":{"type":"git","url":"git+https://github.com/kevalbhatt/timezone-picker.git"},"keywords":["jquery-timezone","select","timezone","UI","timezone","picker"],"author":{"name":"Keval Bhatt"},"license":"MIT","bugs":{"url":"https://github.com/kevalbhatt/timezone-picker/issues"},"homepage":"https://github.com/kevalbhatt/timezone-picker#readme","dependencies":{"jquery":"^3.3.1","moment-timezone":"^0.5.17","select2":"^4.0.6-rc.1"},"devDependencies":{"babel":"^6.23.0","babel-core":"^6.26.3","babel-loader":"^7.1.4","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-module-resolver":"^3.1.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.5","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","clean-webpack-plugin":"^0.1.19","cross-env":"^5.1.6","css-loader":"^0.28.11","expose-loader":"^0.7.5","extract-text-webpack-plugin":"^4.0.0-beta.0","html-webpack-plugin":"^3.2.0","node-sass":"^4.9.0","sass-loader":"^7.0.3","webpack":"^4.12.0","webpack-cli":"^3.0.3","webpack-dev-server":"^3.1.4"},"gitHead":"e733cd8a63f7a8cd56777445e75602190347208b","_id":"timezone-picker@2.0.0-1","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"},"dist":{"integrity":"sha512-9fdGIyRVNBgIxWZTcdbZAcpQ14JvKapaPgNq1zOHEe4dAtHWEbNx+FnewZFSz4NpwDqtsIdkkeG6Furr2o//Gw==","shasum":"1a488505d65b1fe7f02aad4c0aa6c45a1d1521cb","tarball":"https://registry.npmjs.org/timezone-picker/-/timezone-picker-2.0.0-1.tgz","fileCount":15,"unpackedSize":289731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbM4iNCRA9TVsSAnZWagAAar4P/iDNaKtlqkLlUZpTtjnI\nIdfl+Suk/HbyDkR2pgHZjgxs8gwVmg77yBBFyQqWZvUu2hjlqaWa3XGDNPh0\n0Xmg8Kf7DWLKoSVbaLjfbRt8lrFCmQsciMcFSpLduj8pUqpdB6J4ENf41FtE\n5p6q0ZJTUv8koSXBysFt3Z08GkcebwdzbN8v0h3nSG2OoxOWvOr+lZWSz2FR\nW18oTqvocgvdhdbngKzopYMTrLJJSmn4BVCRR3aufO7Lji7AL+KTi8cKsqfv\nSrMyANsRwZecYlxsy/xmM4IP8MgMq5oamgLlZ00/8fy+zqW+cteqt046HlCp\nBA5w4Ysxtin1NHmlFtvIdMD7KoUvBtJxIJIHyLqwOuFchbd/LzH+UZtqt3fT\nDzld4TmrSwsiwM6AxlCTJy/ej+DGmgSR5NMMvtvexYyoUHu3V6kjnDN6zTdy\noB5DjdQ/fNTzmr9XdNeLDTUAJyJpiQVfhYpgakF40EnZx34I4H3PcRJxfUMv\nW94n7PuwC6ZWii11AACvpPxeY846FAByPbEkOves9Lk88oU54fCxE5gHiR6g\ntZWuVO4rqam7N1WFawPMg5BELXGGHfQY/yEct/qMJXGqEnM6e2Vmc/+xxn4c\nvgjXc+aHVIqIojlTvGKThqZREZAksr6L7i5oj234sCAHoaVGd2M/PFKIlj21\nSrUF\r\n=qRTS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhD9T9LIGHxiZwPdShS/o1CIVZ5fktmdEjCZTwYJXk7AiAdqpIWlKPiD7DCQK/ILSs2NygPJobmoXmfJYaPqpfIew=="}]},"maintainers":[{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timezone-picker_2.0.0-1_1530103949642_0.8244864030383059"},"_hasShrinkwrap":false}},"readme":"# timezone-picker\n\ntimezone-picker is the plugin to select and get timezone value of selected area(country) from WorldMap.\n\n[![NPM version](https://badge.fury.io/js/timezone-picker.svg)](https://www.npmjs.com/package/timezone-picker)\n[![NPM Dependency](https://david-dm.org/kevalbhatt/timezone-picker.svg)](https://www.npmjs.com/package/timezone-picker)\n[![](https://data.jsdelivr.com/v1/package/npm/timezone-picker/badge)](https://www.jsdelivr.com/package/npm/timezone-picker)\n[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)]()\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/kevalbhatt/timezone-picker/issues)\n[![HitCount](http://hits.dwyl.com/kevalbhatt/timezone-picker.svg)](http://github.com/kevalbhatt/timezone-picker)\n\n\n### Live Demo: http://kevalbhatt.github.io/timezone-picker/\n---------------------\n\n![Imgur](https://i.imgur.com/YrGdPv2.png)\n\n# Dependency\n---------------------\n* moment-timezone\n* jquery\n* select2 (optional)\n\n\n# Installation\n---------------------\n\n### Use package Using npm\n\n```sh\nnpm install --save timezone-picker\n```\nor \n\n### Use package Using CDN\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/timezone-picker@2.0.0-1/dist/timezone-picker.min.js\"></script>\n```\n\nInclude the following lines of code in the section of your HTML.\n\n```html\n<link href=\"[yourpath]/select2.min.css\" rel=\"stylesheet\"> <!-- Optional -->\n<link href=\"[yourpath]/dist/styles/timezone-picker.css\" rel=\"stylesheet\">\n<script type=\"text/javascript\" src=\"[yourpath]/moment-timezone.js\"></script> \n<script type=\"text/javascript\" src=\"[yourpath]/jquery.js\"></script>\n<script type=\"text/javascript\" src=\"[yourpath]/select2\"></script> <!-- Optional -->\n<script type=\"text/javascript\" src=\"[yourpath]/dist/timezone-picker.min.js\"></script>\n```\n\n\n# Usage\n---------------------\n\n## Select any dom element where you want to create the map.\n\n```js\n$(selector).timezonePicker();\n```\n\n## defaultValue\n\nSet a custom value on load\n\nIf defaultValue is null then system timezone is selected\n\n* ### Select value based on zonename.\n\n```js\n$(selector).timezonePicker({ defaultValue: { value: \"EAT\", attribute: \"zonename\" }});\n```\n\n* ### Select value based on country code.\n\n```js\n$(selector).timezonePicker({ defaultValue: { value: \"IN\", attribute: \"country\" }});\n```\n\n* ### Select value based on timezone.\n\n```js\n$(selector).timezonePicker({ defaultValue: { value: \"Asia/Calcutta\", attribute: \"timezone\" }});\n```\n\n* ### Select value based on offset.\n\n```js\n$(selector).timezonePicker({ defaultValue: { value: \"5.5\", attribute: \"offset\" }});\n```\n\n## quickLink\n\nYou can create custom shortcuts link using quickLink options.\n\n```js\n$(selector).timezonePicker({\n    quickLink: [{\n        \"IST\": \"IST\",\n        \"LONDON\": \"Europe/London\"\n    }]\n});\n```\n\n* \"LONDON\": This key is used as a display string for shortcut button.\n* \"Europe/London\": This value is used when user click on a button and based on value, map is highlighted\n\n\nExample: \n\nYou can pass following value.\n\n* **timezone** : Europe/London\n* **zonename** : GMT\n* **country code** : GB\n\n```js\n$(selector).timezonePicker({\n    quickLink: [{\n        \"LONDON1\": \"Europe/London\"\n    }]\n});\n\n$(selector).timezonePicker({\n    quickLink: [{\n        \"LONDON2\": \"GB\"\n    }]\n});\n\n$(selector).timezonePicker({\n    quickLink: [{\n        \"LONDON3\": \"GMT\"\n    }]\n});\n\n$(selector).timezonePicker({\n    quickLink: [{\n        \"GMT\": \"GMT\"\n    }]\n});\n```\n\n## hoverText\n\n```js\n$(selector).timezonePicker({\n    hoverText: function(e, data){\n        return (data.timezone + \" (\" + data.zonename + \")\");\n    }\n});\n```\n\n## quickLinkClass\n\nClass name for the quickLink container.\n\n```js\n$(selector).timezonePicker({\n    quickLinkClass: \"quick-class\"\n});\n```\n\n**Output**\n\n```diff\n<div class=\"filter-box\">\n    <select class=\"country-lov select-class\"></select>\n+    <div class=\"quick-link quick-class\"></div>\n    <div class=\"hover-text\"></div>\n</div>\n```\n## selectClass\n\nClass name for the country drop-down.\n\n```js\n$('body').timezonePicker({\n    selectClass: \"select-class\"\n});\n```\n**Output**\n\n```diff\n<div class=\"filter-box\">\n+    <select class=\"country-lov select-class\"></select>\n    <div class=\"quick-link\"></div>\n    <div class=\"hover-text\"></div>\n</div>\n```\n\n## filterBoxClass\n\nClass name for the filter box container.\n\n```js\n$('body').timezonePicker({\n    filterBoxClass: \"filter-class\"\n});\n```\n**Output**\n\n```diff\n+<div class=\"filter-box filter-class\">\n    <select class=\"country-lov\"></select>\n    <div class=\"quick-link\"></div>\n    <div class=\"hover-text\"></div>\n</div>\n```\n\n## hoverTextClass\n\nClass name for the hover text container.\n\n```js\n$('body').timezonePicker({\n    hoverTextClass: \"hover-class\"\n});\n```\n**Output**\n\n```diff\n<div class=\"filter-box\">\n    <select class=\"country-lov\"></select>\n    <div class=\"quick-link\"></div>\n+    <div class=\"hover-text hover-class\"></div>\n</div>\n```\n\n# Options\n---------------------\n\n| Parameter | Type | Default | Description |\n| :---------|:---- |:--------|:----------- | \n| **width** | `Number` | `500` | width of map |\n| **height** | `Number` | `250` | height of map |\n| [**defaultValue**](#defaultvalue) | `Object` | System timezone | Set custome value on load `{ value: \"EAT\", attribute: \"zonename\" }` |\n| [**quickLink**](#quicklink) | `Array<Object>` | `[{\"IST\": \"IST\",\"LONDON\": \"Europe/London\"}]` | Creates shortcuts to select zone |\n| [**quickLinkClass**](#quicklinkclass) | `String` | `quick-link` | quickLinkClass will be appended with the default value |\n| [**filterBoxClass**](#filterboxclass) | `String` | `filter-box` | filterBoxClass will be appended with the default value |\n| **selectBox** | `Boolean` | `true` | If it is set to false select box will not be created |\n| [**selectClass**](#selectclass) | `String` | `country-lov` | selectClass is appended with the default value |\n| **showHoverText** | `Boolean` | `true` | If it is set to false hover text will not be shown |\n| [**hoverText**](#hovertext) | `Function` | `timezone(zonename)` | Called on hover of country (works only if showHoverText is true) |\n| [**hoverTextClass**](#hovertextclass) | `String` | `hover-text` | hoverTextClass is appended with the default value |\n| **hoverTextEl** | `Jquery selector` | `Appened in filter-box` | hover text element is appended in selector |\n| **mapHoverType**  | `String` | hover polygon(area) | by default it will show hovered polygon(area) on which mouse is pointed [other hover options](#maphovertype-options) |\n\n\n\n### mapHoverType options\n| Parameter | Type | Description |\n| :---------|:---- |:----------- | \n| **timezone** | `String`| when you hover on the map it will highlight all country with the same timezone\n| **country** | `String`| when you hover on the map it will highlight all country with same country code |\n| **zonename** | `String`| when you hover on the map it will highlight all country with the same zone name |\n    \n\n# Methods\n---------------------\n\n### .setValue(value[String-required],attribute[String-optional])\n\nSelect the value(country) based on value and attribute parameter.\n\n\n* Set timezone string as a first parameter for example: 'Asia/Kolkata'.\n* Default attribute is \"timezone\";\n\n```js\n$(selector).data('timezonePicker').setValue('Asia/Kolkata')\n```\n\n* If you want to set value based on offset then set the 1st parameter as an offset string(\"5.5\") and 2nd parameter to 'offset'\n\n```js\n$(selector).data('timezonePicker').setValue('5.5','offset')\n```\n\n* If you want to set value based country code then set the 1st parameter as country code and 2nd parameter to 'country'\n\n```js\n$(selector).data('timezonePicker').setValue('IN','country')\n```\n\n* If you want to set value based zonename then set the 1st parameter as zonename(IST) and 2nd parameter to 'zonename'\n\n```js\n$(selector).data('timezonePicker').setValue('IST','zonename')\n```\n\n### .getValue()\n\nIt returns object containing timezone details of seleted area:\n\n```js\n$(selector).data('timezonePicker').getValue()\n```\n\nSample returned Object\n\n```js\n  [\n    {\n        \"selected\":true,\n        \"zonename\":\"IST\",\n        \"offset\":5.5,\n        \"pin\":\"361,115\",\n        \"country\":\"LK\",\n        \"timezone\": \"Asia/Colombo\",\n    },\n    {\n        \"zonename\":\"IST\",\n        \"offset\":5.5,\n        \"pin\": \"373,94\",\n        \"country\":\"IN\",\n        \"timezone\": \"Asia/Kolkata\",\n    }\n]\n``` \n\n### .getSystemTimezone()\n\nIt returns an object containing system timezone details.\n\n### .getTimeZoneObject(value[String-required],attribute[String-optional])\n\nIt returns an object containing timezone details based on value and attribute.\n\n* Get timezone `Object` using timezone string example: 'Asia/Kolkata'.\n* Default attribute is \"timezone\";\n\n```js\n$(selector).data('timezonePicker').getTimeZoneObject('Asia/Kolkata');\n```\n\n* If you want to get Object based on offset then set the 1st parameter as an offset string(\"5.5\") and 2nd parameter to 'offset'\n\n```js\n$(selector).data('timezonePicker').getTimeZoneObject('5.5','offset');\n```\n\n* If you want to get Object based country code then set the 1st parameter as country code and 2nd parameter to 'country'\n\n```js\n$(selector).data('timezonePicker').getTimeZoneObject('IN','country');\n```\n\n* If you want to get Object based zonename then set the 1st parameter as zonename(IST) and 2nd parameter to 'zonename'\n\n```js\n$(selector).data('timezonePicker').getTimeZoneObject('IST','zonename');\n```\n\n### .getZoneName(value[String-required],attribute[String-optional])\n\nIt returns an zonename based on value and attribute.\n\n* Get zonename `String` using timezone string example: 'Asia/Kolkata'.\n* Default attribute is \"timezone\";\n\n```js\n$(selector).data('timezonePicker').getZoneName('Asia/Kolkata');\n```\n\n* If you want to get zonename based on offset then set the 1st parameter as an offset string(\"5.5\") and 2nd parameter to 'offset'\n\n```js\n$(selector).data('timezonePicker').getZoneName('5.5','offset');\n```\n\n* If you want to get zonename based country code then set the 1st parameter as country code and 2nd parameter to 'country'\n\n```js\n$(selector).data('timezonePicker').getZoneName('IN','country');\n```\n\n\n### .getTimeZoneString(value[String-required],attribute[String-optional])\n\nIt returns an timezone string based on value and attribute.\n\n* Get timezone `String` using country code example: 'IN'.\n* Default attribute is \"country\";\n\n```js\n$(selector).data('timezonePicker').getZoneName('IN');\n```\n\n* If you want to get timezone string based on offset then set the 1st parameter as an offset string(\"5.5\") and 2nd parameter to 'offset'\n\n```js\n$(selector).data('timezonePicker').getTimeZoneString('5.5','offset');\n```\n\n* If you want to get timezone string based zonename then set the 1st parameter as zonename(IST) and 2nd parameter to 'zonename'\n\n```js\n$(selector).data('timezonePicker').getTimeZoneString('IST','zonename');\n```\n\n# Events\n---------------------\n\n## map:loaded\n\nAs soon as the map is loaded and ready the **map:loaded** is fired.\nTo catch it you can use:\n```\n$(selector).on(\"map:loaded\" , function(){\n    console.log(\"Map is loaded, have fun!\");\n});\n```\n\n## map:value:changed\n\nWhenever the value of the timezone changes, the event **map:value:changed** is fired.\nTo catch it you can use:\n```\n$(selector).on(\"map:clicked\" , function(){\n    console.log($(selector).data('timezonePicker').getValue());\n});\n```\n\n\n## map:country:clicked\n\nEvent **map:country:clicked** is fired, when a user clicks on the country.\nTo catch it you can use:\n```\n$(selector).on(\"map:country:clicked\" , function(){\n    console.log($(selector).data('timezonePicker').getValue());\n});\n```\n\n## map:quickLink:clicked\n\nEvent **map:quickLink:clicked** is fired, when a user clicks on the quickLink button.\nTo catch it you can use:\n```\n$(selector).on(\"map:quickLink:clicked\" , function(){\n    console.log($(selector).data('timezonePicker').getValue());\n});\n```\n\n## map:option:changed\n\nEvent **map:option:changed** is fired, when a user changes the value from the country drop-down.\nTo catch it you can use:\n```\n$(selector).on(\"map:option:changed\" , function(){\n    console.log($(selector).data('timezonePicker').getValue());\n});\n```\n\n## License\n---------------------\nIt is available under the [MIT LICENSE](LICENSE.md)\n","maintainers":[{"name":"kevalbhatt18","email":"kevalbhatt18@gmail.com"}],"time":{"modified":"2022-05-21T21:20:25.363Z","created":"2017-12-24T17:18:51.571Z","1.0.0":"2017-12-24T17:18:51.571Z","1.0.1":"2017-12-24T17:51:54.011Z","1.0.2":"2018-03-02T14:22:42.449Z","2.0.0-0":"2018-06-27T12:26:48.803Z","2.0.0-1":"2018-06-27T12:52:29.712Z"},"homepage":"https://github.com/kevalbhatt/timezone-picker#readme","keywords":["jquery-timezone","select","timezone","UI","timezone","picker"],"repository":{"type":"git","url":"git+https://github.com/kevalbhatt/timezone-picker.git"},"author":{"name":"Keval Bhatt"},"bugs":{"url":"https://github.com/kevalbhatt/timezone-picker/issues"},"license":"MIT","readmeFilename":"README.md"}