Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
YutangShi authored Feb 18, 2018
1 parent 28f720c commit c8abfa8
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Parse Date to Simple Object in JavaScript
## Usage

```bash
npm i date2obj --save
npm i form-validation --save
```

```js
Expand All @@ -33,18 +33,6 @@ console.log(currentTime);
// minute: 'mm',
// second: 'SS'
// }

const otherTime = date2obj(new Date(1518545575000));
console.log(otherTime);
// Local time with the epoch
// {
// year: "2018",
// month: "02",
// day: "14",
// hour: "02",
// minute: "12",
// second: "55"
// }
```

## License
Expand Down

0 comments on commit c8abfa8

Please sign in to comment.