{"name":"date-time","version":"3.1.0","description":"Pretty datetime: `2014-01-09 06:46:01`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/date-time.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["datetime","date-time","date","time","utc","iso","timezone","zone","timestamp"],"dependencies":{"time-zone":"^1.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.1","xo":"^0.24.0"},"gitHead":"63431bde09f030fdef007e645f707c4b3de2650a","bugs":{"url":"https://github.com/sindresorhus/date-time/issues"},"homepage":"https://github.com/sindresorhus/date-time#readme","_id":"date-time@3.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-uqCUKXE5q1PNBXjPqvwhwJf9SwMoAHBgWJ6DcrnS5o+W2JOiIILl0JEdVD8SGujrNS02GGxgwAg2PN2zONgtjg==","shasum":"0d1e934d170579f481ed8df1e2b8ff70ee845e1e","tarball":"http://registry-npm.ywwl.com/date-time/download/date-time-3.1.0.tgz","fileCount":5,"unpackedSize":4927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoslLCRA9TVsSAnZWagAAAnwP/2fGT3HXEUkTeWN7aVWk\nuxpoI+avjPMpTc2DDJmBwRiHzWn6WIdzRfqYHcgCq8rQie0TxqxjzW+ekAVI\nCIioYPei6G3BMrdPqUXOUIeZKHGzIiHn0aFvVjbvNChBg2Njhy3DxYAh58JZ\nRL+n2CdMLzv1wsDPPpbUMY39aEtOZlYSb7Fo9Ykqb5OeXPOVTgN9CDRDIde3\n2qITLchB5pn2e4GSsILZ9l09yYsIl1x2JcNn0KekK0vDX9Tl0OR5Zorw2WsZ\nLzObXWu6kiSacWzHgzSa5vJm57N77jCG5fQYdjOfXoFHVpuVP/5vujaafSHK\nWOMSmjGgswHo1uEGV8YvEVMUEq4K7VNFCCbsKRxW2xAhV892VvJ8+hc0BIRs\nsW3QPZHGOtRmLQ6GFTR2GEh0Kk5x14SnULddzsoQY/sBDRFvePWl9Hiz8iFQ\nocC/P/UZQmNv5GkyhjMNiTsT6INe7EvZGKodDEYftOApLkY2+MF5z0g+RJaq\nkVP5nRRC4aisQ8ECTIwr3SfJzwTv6kobTGbM1S4ep+49sHzdriH3xDl5DFBg\n0zl3bxMGvyg0cc9F5bH5Slzi/2KdRT2QCq7T+Clfure1ANiaDnsEhEAmOA6G\nS12FKp3MmCW0NMjnsXo5RU3voRzJq8li6LlvIADvqj5stj5OH6UBZZRrbTYA\nb317\r\n=KTe/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxE7D17dhXdy8jp6TOOs6thB1AEIzgXNPP1BTapiNvPgIhAOryXcMu6SNkMwPRwfkHY94hOy2V//qR797SpzZ4fIY5"}],"size":2182,"noattachment":false,"key":"/date-time/-/date-time-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/date-time_3.1.0_1554172234125_0.33192611997084587"},"_hasShrinkwrap":false,"readme":"# date-time\n\n> Pretty datetime: `2014-01-09 06:46:01`\n\n## Install\n\n```\n$ npm install date-time\n```\n\n## Usage\n\n```js\nimport dateTime from 'date-time';\n\ndateTime();\n//=> '2017-05-20 17:07:05'\n\ndateTime({date: new Date(1989, 2, 4, 10)});\n//=> '1989-03-04 09:00:00'\n\ndateTime({showTimeZone: true});\n//=> '2017-05-20 17:07:05 UTC+7'\n\ndateTime({local: false});\n//=> '2017-05-20 10:07:05'\n\ndateTime({local: false, showTimeZone: true});\n//=> '2017-05-20 10:07:05 UTC'\n\ndateTime({showMilliseconds: true});\n//=> '2017-05-20 17:07:05 6ms'\n```\n\n## API\n\n### dateTime(options?)\n\n### options\n\nType: `object`\n\n#### date\n\nType: `Date`\\\nDefault: `new Date()`\n\nCustom date.\n\n#### local\n\nType: `boolean`\\\nDefault: `true`\n\nShow the date in the local time zone.\n\n#### showTimeZone\n\nType: `boolean`\\\nDefault: `false`\n\nShow the UTC time zone postfix.\n\n#### showMilliseconds\n\nType: `boolean`\\\nDefault: `false`\n\nShow the milliseconds in the date if any.\n","publish_time":1554172234341,"_cnpm_publish_time":1554172234341,"dist-tags":{"latest":"4.0.0"}}