{"name":"time-zone","version":"2.0.0","description":"Pretty time zone: `+2` or `-9:30`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/time-zone.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["timezone","utc","time","pretty","human","date","iso","zone"],"devDependencies":{"ava":"^3.15.0","xo":"^0.38.2"},"gitHead":"11e694a30b1d4a66477513133448ba5b70a60716","bugs":{"url":"https://github.com/sindresorhus/time-zone/issues"},"homepage":"https://github.com/sindresorhus/time-zone#readme","_id":"time-zone@2.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-2cp/YLRm7ly33CzvySyXqo/QEOu4KMn6fCof0gpqosWY3PEJUJJhXP/Cb2wXFUuCzWWJYEmPvdHNzjLlfXC49A==","shasum":"dbf85b93072f6755b087677d25b6fab3708119a2","tarball":"http://registry-npm.ywwl.com/time-zone/download/time-zone-2.0.0.tgz","fileCount":4,"unpackedSize":2591,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfpJXCRA9TVsSAnZWagAAn7kP/0kG7e0fcniCQM2I3fP3\np0OJlzjBgs70DUswyrS8/veGkCtcWfIcJKjxlm2XJ1NOCSYCaYm/BdJpogG0\nMr0O6JQKfaReZ1eAWtNnH3Qpi95V6emJ4lthzBjtIudWyk0B7WjATMASgJYE\ncr3t8jQ+mJbhxUMamPuEMHzlhE7pMDxhqn0z7Dgnz03FU7qHMG3sjI+jUBDC\nRb34tHmUYCSyhAYiOlffWvmptEivKa1g9fQUzY/pRDwkvh/xpKfiQPKpMttN\nkjk8SStc5S44iJKAWb3Iz1SWR0KpjFojuvdNxYqZovT+lZrFZRVX9TETU++6\nGdeScSlE30HsueSvUFy7BwycC4zVhydSy9e/iztWlzvbW9FwXGM8GIWMZmKT\nJ7g4rg5RFQfNoZJf5x7Iw8JXkw99HIuCBiajykN9jNt92o7yFW73AZc44PwD\nPEdYqf53lAVhCaGrgzjpGvtSd8hm5Y6ARZ5FBkS+E6FJmi8dhJ1qMOH7l5ob\nkjCD+1txj4EOzCOqvA0Cqjpj64uS1L+cFTctHPfV/jp5MIrnOT8210M/I9YB\nUnW/s4oXMxpqZMC3OKTcSf/vih/TKS6gi+af2U2JZcHlc8IjYWfWd2I5u1dv\n0bIOPVll0qDvdWkYkJtLut+rAhBkNmC9d4/aTV4Fn02/G8tGX338COQ3BELE\nP7xr\r\n=W6Ip\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDRnyTHsRueNM0P9BcPZm4M+W95OVZOQ8obQqu2MYM2UAiAYbwNgnawPdGF3ydLcSFVFjz1SM42NEE/JJCsrUhCBnA=="}],"size":1557,"noattachment":false,"key":"/time-zone/-/time-zone-2.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/time-zone_2.0.0_1618907735323_0.14989217270599875"},"_hasShrinkwrap":false,"readme":"# time-zone\n\n> Pretty [time zone](https://en.wikipedia.org/wiki/Time_zone): `+2` or `-9:30`\n\n## Install\n\n```\n$ npm install time-zone\n```\n\n## Usage\n\n```js\nimport timeZone from 'time-zone';\n\n// Current time zone (in Norway)\ntimeZone();\n//=> '+2'\n\n// Time zone in February (in Norway)\ntimeZone(new Date(2016, 1, 1));\n//=> '+1'\n\n// Current time zone (in French Polynesia)\ntimeZone();\n//=> '-9:30'\n```\n\n## API\n\n### timeZone(date?)\n\n#### date\n\nType: `Date`\\\nDefault: `new Date()`\n\nCustom date.\n","publish_time":1618907735586,"_cnpm_publish_time":1618907735586,"dist-tags":{"latest":"2.0.0"}}