{"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"keywords":["console","date","format","formatting","log","pretty","stamp","terminal","time","time-stamp"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"description":"Get a formatted timestamp.","readme":"# time-stamp [![NPM version](https://img.shields.io/npm/v/time-stamp.svg?style=flat)](https://www.npmjs.com/package/time-stamp) [![NPM monthly downloads](https://img.shields.io/npm/dm/time-stamp.svg?style=flat)](https://npmjs.org/package/time-stamp) [![NPM total downloads](https://img.shields.io/npm/dt/time-stamp.svg?style=flat)](https://npmjs.org/package/time-stamp) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/time-stamp.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/time-stamp)\n\n> Get a formatted timestamp.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save time-stamp\n```\n\n## v2.0.0\n\n**Breaking changes**\n\nDefault pattern was changed from `YYYY:MM:DD` to `YYYY-MM-DD`. See https://github.com/jonschlinkert/time-stamp/issues/3 for more details.\n\n## Usage\n\n```js\nvar timestamp = require('time-stamp');\n\ntimestamp();\n//=> 2017-05-14\n\ntimestamp('YYYYMMDD');\n//=> 20170514\n\ntimestamp('YYYYMMDD:ss');\n//=> 20170514:10\n\ntimestamp('YYYY/MM/DD:mm:ss');\n//=> 2017/05/14:30:10\n\ntimestamp('YYYY:MM:DD');\n//=> 2017:05:14\n\ntimestamp('[YYYY:MM:DD]');\n//=> [2017:05:14]\n\ntimestamp('YYYY/MM/DD');\n//=> 2017/05/14\n\ntimestamp('YYYY:MM');\n//=> 2017:05\n\ntimestamp('YYYY');\n//=> 2017\n\ntimestamp('MM');\n//=> 05\n\ntimestamp('DD');\n//=> 14\n\ntimestamp('HH');\n//=> 21\n\ntimestamp('mm');\n//=> 30\n\ntimestamp('ss');\n//=> 10\n\ntimestamp('ms');\n//=> 365\n```\n\n**Valid patterns**\n\n* `YYYY`: full year (ex: **2017**)\n* `MM`: month (ex: **04**)\n* `DD`: day (ex: **01**)\n* `HH`: hours (ex: **12**)\n* `mm`: minutes (ex: **59**)\n* `ss`: seconds (ex: **09**)\n* `ms`: milliseconds (ex: **532**)\n\n## About\n\n### Related projects\n\n* [days](https://www.npmjs.com/package/days): Days of the week. | [homepage](https://github.com/jonschlinkert/days \"Days of the week.\")\n* [iso-week](https://www.npmjs.com/package/iso-week): Get the ISO week of the year. | [homepage](https://github.com/jonschlinkert/iso-week \"Get the ISO week of the year.\")\n* [month](https://www.npmjs.com/package/month): Get the name or number of the current month or any month of the year. | [homepage](https://github.com/datetime/month \"Get the name or number of the current month or any month of the year.\")\n* [months](https://www.npmjs.com/package/months): Months of the year. | [homepage](https://github.com/jonschlinkert/months \"Months of the year.\")\n* [o-clock](https://www.npmjs.com/package/o-clock): Simple javascript utility for displaying the time in 12-hour clock format. | [homepage](https://github.com/jonschlinkert/o-clock \"Simple javascript utility for displaying the time in 12-hour clock format.\")\n* [seconds](https://www.npmjs.com/package/seconds): Get the number of seconds for a minute, hour, day and week. | [homepage](https://github.com/jonschlinkert/seconds \"Get the number of seconds for a minute, hour, day and week.\")\n* [week](https://www.npmjs.com/package/week): Get the current week number. | [homepage](https://github.com/datetime/week \"Get the current week number.\")\n* [weekday](https://www.npmjs.com/package/weekday): Get the name and number of the current weekday. Or get the name of the… [more](https://github.com/datetime/weekday) | [homepage](https://github.com/datetime/weekday \"Get the name and number of the current weekday. Or get the name of the weekday for a given number.\")\n* [year](https://www.npmjs.com/package/year): Simple utility to get the current year with 2 or 4 digits. | [homepage](https://github.com/jonschlinkert/year \"Simple utility to get the current year with 2 or 4 digits.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 21 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [evocateur](https://github.com/evocateur) |\n| 1 | [mendenhallmagic](https://github.com/mendenhallmagic) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 14, 2017._","repository":{"type":"git","url":"git+https://github.com/jonschlinkert/time-stamp.git"},"users":{"jaeger":true,"noyobo":true,"moling":true,"chinawolf_wyp":true,"xiaoxiang":true,"wujr5":true,"rocket0191":true},"bugs":{"url":"https://github.com/jonschlinkert/time-stamp/issues"},"license":"MIT","versions":{"0.1.0":{"name":"time-stamp","description":"Get a formatted timestamp.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/time-stamp","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/time-stamp.git"},"bugs":{"url":"https://github.com/jonschlinkert/time-stamp/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/time-stamp/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"pad-left":"^1.0.1"},"devDependencies":{"mocha":"*","should":"*"},"keywords":[],"gitHead":"b8ae3faca77317759ed3ac5c684aec2c9b476414","_id":"time-stamp@0.1.0","_shasum":"8dbdd183b9b5a44d3333cc057fd8b1adbc656226","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8dbdd183b9b5a44d3333cc057fd8b1adbc656226","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/time-stamp/-/time-stamp-0.1.0.tgz"},"directories":{}},"0.1.1":{"name":"time-stamp","description":"Get a formatted timestamp.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/time-stamp","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/time-stamp.git"},"bugs":{"url":"https://github.com/jonschlinkert/time-stamp/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["console","date","format","formatting","log","pretty","stamp","terminal","time","time-stamp"],"verb":{"related":{"list":["days","iso-week","month","months","o-clock","seconds","week","weekday","year"]}},"gitHead":"83a4cf40a3dcd02985f415e1e22fa43e0222f32f","_id":"time-stamp@0.1.1","_shasum":"fd7605d23636684fd83763876a38ce91f95639bb","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"fd7605d23636684fd83763876a38ce91f95639bb","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/time-stamp/-/time-stamp-0.1.1.tgz"},"directories":{}},"0.1.2":{"name":"time-stamp","description":"Get a formatted timestamp.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/time-stamp","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/time-stamp.git"},"bugs":{"url":"https://github.com/jonschlinkert/time-stamp/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["console","date","format","formatting","log","pretty","stamp","terminal","time","time-stamp"],"verb":{"related":{"list":["days","iso-week","month","months","o-clock","seconds","week","weekday","year"]}},"gitHead":"0aecdd1a490160a99a0acee7faee7d5c7d58bfcc","_id":"time-stamp@0.1.2","_shasum":"d50836c26e89a21faf9eb3d87543f63da88253b7","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d50836c26e89a21faf9eb3d87543f63da88253b7","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/time-stamp/-/time-stamp-0.1.2.tgz"},"directories":{}},"0.1.3":{"name":"time-stamp","description":"Get a formatted timestamp.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/time-stamp","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/time-stamp.git"},"bugs":{"url":"https://github.com/jonschlinkert/time-stamp/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["console","date","format","formatting","log","pretty","stamp","terminal","time","time-stamp"],"verb":{"related":{"list":["days","iso-week","month","months","o-clock","seconds","week","weekday","year"]}},"gitHead":"bcb6a9368182b0725e367b64332292f226036742","_id":"time-stamp@0.1.3","_shasum":"095848c27e79db4c01daba9477d675bc6f3290f9","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"095848c27e79db4c01daba9477d675bc6f3290f9","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/time-stamp/-/time-stamp-0.1.3.tgz"},"directories":{}},"1.0.0":{"name":"time-stamp","description":"Get a formatted timestamp.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/time-stamp","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/time-stamp.git"},"bugs":{"url":"https://github.com/jonschlinkert/time-stamp/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","pad-left":"^2.0.1"},"keywords":["console","date","format","formatting","log","pretty","stamp","terminal","time","time-stamp"],"verb":{"related":{"list":["days","iso-week","month","months","o-clock","seconds","week","weekday","year"]},"layout":"default"},"gitHead":"b7d15686750c021deac6265745e1bbd8c222a3a1","_id":"time-stamp@1.0.0","_shasum":"56b152e07ec2442c23d9ea690944076f38c535a1","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"56b152e07ec2442c23d9ea690944076f38c535a1","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/time-stamp/-/time-stamp-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/time-stamp-1.0.0.tgz_1454994538069_0.7128474737983197"},"directories":{}},"1.0.1":{"name":"time-stamp","description":"Get a formatted timestamp.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/time-stamp","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/time-stamp.git"},"bugs":{"url":"https://github.com/jonschlinkert/time-stamp/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5","pad-left":"^2.0.3"},"keywords":["console","date","format","formatting","log","pretty","stamp","terminal","time","time-stamp"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["days","iso-week","month","months","o-clock","seconds","week","weekday","year"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"66fc623cf26a5f85fe22a6a7acc91568cddf301c","_id":"time-stamp@1.0.1","_shasum":"9f4bd23559c9365966f3302dbba2b07c6b99b151","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"9f4bd23559c9365966f3302dbba2b07c6b99b151","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/time-stamp/-/time-stamp-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/time-stamp-1.0.1.tgz_1460014127254_0.9380003691185266"},"directories":{}},"1.1.0":{"name":"time-stamp","description":"Get a formatted timestamp.","version":"1.1.0","homepage":"https://github.com/jonschlinkert/time-stamp","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Daniel Stockman","url":"http://evocateur.org"},{"name":"Drew","url":"https://github.com/mendenhallmagic"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/time-stamp.git"},"bugs":{"url":"https://github.com/jonschlinkert/time-stamp/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.4.1","pad-left":"^2.1.0"},"keywords":["console","date","format","formatting","log","pretty","stamp","terminal","time","time-stamp"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":{"timestamp":"./index.js"},"related":{"list":["days","iso-week","month","months","o-clock","seconds","week","weekday","year"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"30533a5f71944f368b3b1ccaedd895a26b6c5bff","_id":"time-stamp@1.1.0","_shasum":"764a5a11af50561921b133f3b44e618687e0f5c3","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"764a5a11af50561921b133f3b44e618687e0f5c3","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/time-stamp/-/time-stamp-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/time-stamp-1.1.0.tgz_1494809609879_0.2116724606603384"},"directories":{}},"2.0.0":{"name":"time-stamp","description":"Get a formatted timestamp.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/time-stamp","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Daniel Stockman","url":"http://evocateur.org"},{"name":"Drew","url":"https://github.com/mendenhallmagic"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/time-stamp.git"},"bugs":{"url":"https://github.com/jonschlinkert/time-stamp/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.4.1","pad-left":"^2.1.0"},"keywords":["console","date","format","formatting","log","pretty","stamp","terminal","time","time-stamp"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":{"timestamp":"./index.js"},"related":{"list":["days","iso-week","month","months","o-clock","seconds","week","weekday","year"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"14aae48160f815c874defbf1673564149201507d","_id":"time-stamp@2.0.0","_shasum":"95c6a44530e15ba8d6f4a3ecb8c3a3fac46da357","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"95c6a44530e15ba8d6f4a3ecb8c3a3fac46da357","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/time-stamp/-/time-stamp-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/time-stamp-2.0.0.tgz_1494811824537_0.8978691305965185"},"directories":{}}},"name":"time-stamp","contributors":[{"name":"Daniel Stockman","url":"http://evocateur.org"},{"name":"Drew","url":"https://github.com/mendenhallmagic"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}],"time":{"modified":"2017-06-09T13:42:33.380Z","created":"2015-05-01T09:01:05.358Z","0.1.0":"2015-05-01T09:01:05.358Z","0.1.1":"2015-10-11T03:11:29.325Z","0.1.2":"2015-11-22T10:02:06.702Z","0.1.3":"2015-12-04T19:11:39.884Z","1.0.0":"2016-02-09T05:09:00.854Z","1.0.1":"2016-04-07T07:28:49.885Z","1.1.0":"2017-05-15T00:53:31.594Z","2.0.0":"2017-05-15T01:30:26.540Z"},"readmeFilename":"README.md","homepage":"https://github.com/jonschlinkert/time-stamp"}