work.suroh.tk/node_modules/parse-ms/readme.md

32 lines
539 B
Markdown

# parse-ms [![Build Status](https://travis-ci.org/sindresorhus/parse-ms.svg?branch=master)](https://travis-ci.org/sindresorhus/parse-ms)
> Parse milliseconds into an object
## Install
```sh
$ npm install --save parse-ms
```
```sh
$ bower install --save parse-ms
```
```sh
$ component install sindresorhus/parse-ms
```
## Usage
```js
parseMs(1337000001);
//=> { days: 15, hours: 11, minutes: 23, seconds: 20, milliseconds: 1 }
```
## License
[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)