{"name":"date-time","version":"4.0.0","description":"Pretty datetime: `2014-01-09 06:46:01`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/date-time.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 && tsd"},"keywords":["datetime","date-time","date","time","utc","iso","timezone","zone","timestamp"],"dependencies":{"time-zone":"^2.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"5fe030412a33ce4ccf912a8192fc20158a93f619","bugs":{"url":"https://github.com/sindresorhus/date-time/issues"},"homepage":"https://github.com/sindresorhus/date-time#readme","_id":"date-time@4.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-I53Xcn8FBobcKFcNUfZUSE6O3HeRdp1IOLWyHkipi5S07sEZbTwP+xTrPp5Ch6q6iyFkC06B14+bm96FrdfIEA==","shasum":"2ff450ed73b469b766e56b5f2f62d19ef1df3f7e","tarball":"http://registry-npm.ywwl.com/date-time/download/date-time-4.0.0.tgz","fileCount":5,"unpackedSize":4388,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfpO/CRA9TVsSAnZWagAAJM8P/0o5LJVL9bV+Y5ONR1sE\nLXMHKFGLk6gM97TrvuM+mso5kV8HzYIt06Xaw/SfKXvfj9Lz2wehijeild9Z\npYUc4mdyT9txcIyE2tvt6t5KMWwS+9Q6wg0AMDFp9UD5qwMWxHJBKVqDbFfA\nvrmM3LwGHiFGTYdpef3g5I7ykzGkxcHx99wHYKGRo32fRWnvdjtmKAvFvnoz\nhsxBj9UcXBlLVsM4bW1jV9FRTY46mcBW+9Wz5p2OHIbO767W1ldm0+j3geod\n6oFUaxYYMbZNUEJQs+SRbyHBofvejBQUWYjft9THqmkCwuDBMeNBaRhdierz\nkV2C5FimDs1EHafo9M9jadTid9eGAMCVuY186VUFSY7jgHaEwdEoaH2AuT9k\nmkgfd8RDDrEHK1hEgLvdbjzgKuE7swvZpivoZeM/XaFH+QNTZrNp/LBXxiRF\nBTXPiO06HtOjqnQb32RZ3e/KiOC29M4E8iq+dXJoLjDjJKp0ui6fI+GvKALZ\nsAW5WtGNQViau7+Ig64cuDsjDyszi3ZAklymJ/GxhkKxtxUXQ/iawsssO3Ev\n4bO8u7ujivFG3jdxn/LHeB+FOxQ8fav8aQ06y4wGJgGpXivbgFbDKZeuUVrp\nnb5g0lErpmYw9WC30Sz6wORMRKYYU/fobZ48q1Xs+G9zbU6T+nVW23wfdT35\njnso\r\n=NzWy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCH1ahRHHtQ1ydzCbk4fRzVRsON5HrO7qQo/XdE5yOV1gCIQD7cHclxkfqdV/eXAa2Jbvl3/W2ZkVUZPfWwaQU9zc6+w=="}],"size":1967,"noattachment":false,"key":"/date-time/-/date-time-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/date-time_4.0.0_1618908094764_0.594365705103689"},"_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":1618908094913,"_cnpm_publish_time":1618908094913,"dist-tags":{"latest":"4.0.0"}}