{"name":"date-time","version":"1.1.0","description":"Pretty UTC datetime: 2014-01-09 06:46:01 UTC","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":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["datetime","date-time","date","time","utc","iso","timezone","zone","timestamp"],"dependencies":{"time-zone":"^0.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"38e24dae615adfac5bfb6d9949e0ffb4d69f2489","bugs":{"url":"https://github.com/sindresorhus/date-time/issues"},"homepage":"https://github.com/sindresorhus/date-time#readme","_id":"date-time@1.1.0","_shasum":"18876d0bda4c19fe70dd3bf4b034f281b12a40b6","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"18876d0bda4c19fe70dd3bf4b034f281b12a40b6","tarball":"http://registry-npm.ywwl.com/date-time/download/date-time-1.1.0.tgz","integrity":"sha512-RrxZQ06cdKe7YQ5oqIxs3GMc7W3vXscy7Ds+aZIqmxA59QnVtTiCseA4jbzVUub9xCbo9GuYVZo0OrZLYXnnmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAtic5y0CEHLdTnxbb2YOfAwX/iaaSlV7FhJfNxNKkgAIhALVSsYYUi4W0XkI7a7aPeeqv7kZxSfWEbNAQiEVRxe00"}],"size":1758,"noattachment":false,"key":"/date-time/-/date-time-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/date-time-1.1.0.tgz_1469014367304_0.7951467249076813"},"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":1469014368621,"_cnpm_publish_time":1469014368621,"dist-tags":{"latest":"4.0.0"}}