{"name":"date-time","version":"2.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":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["datetime","date-time","date","time","utc","iso","timezone","zone","timestamp"],"dependencies":{"time-zone":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"a4d5e8c83fe1bac18c3ec373228c7155b00f99aa","bugs":{"url":"https://github.com/sindresorhus/date-time/issues"},"homepage":"https://github.com/sindresorhus/date-time#readme","_id":"date-time@2.1.0","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-/9+C44X7lot0IeiyfgJmETtRMhBidBYM2QFFIkGa0U1k+hSyY87Nw7PY3eDqpvCBm7I3WCSfPeZskW/YYq6m4g==","shasum":"0286d1b4c769633b3ca13e1e62558d2dbdc2eba2","tarball":"http://registry-npm.ywwl.com/date-time/download/date-time-2.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB04/iUWaGwuG2WxRCbehYL2vojzYD13lp7qraTjRKo5AiBN3Izmz5myT7DhYontxLOp6UYB6/KWSe/0aZQfoGEwVQ=="}],"size":1898,"noattachment":false,"key":"/date-time/-/date-time-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/date-time-2.1.0.tgz_1498759128047_0.22168700047768652"},"directories":{},"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":1498759129006,"_cnpm_publish_time":1498759129006,"dist-tags":{"latest":"4.0.0"}}