Travis build: 316

This commit is contained in:
Travis CI
2017-12-26 17:01:00 +00:00
parent 3a67fe00d2
commit 34679eece9
2 changed files with 20 additions and 0 deletions

View File

@ -81,6 +81,7 @@
* [`getDaysDiffBetweenDates`](#getdaysdiffbetweendates)
* [`JSONToDate`](#jsontodate)
* [`toEnglishDate`](#toenglishdate)
* [`tomorrow`](#tomorrow)
### Function
* [`chainAsync`](#chainasync)
@ -1152,6 +1153,18 @@ const toEnglishDate = (time) =>
// toEnglishDate('09/21/2010') -> '21/09/2010'
```
[⬆ back to top](#table-of-contents)
### tomorrow
Results in a string representation of tomorrow's date.
Use `new Date()` to get today's date, adding `86400000` of seconds to it(24 hours), using `toISOString` to convert Date object to string.
```js
const tomorrow = () => new Date(new Date() + 86400000).toISOString().split('T')[0];
// tomorrow() -> 2017-12-26
```
[⬆ back to top](#table-of-contents)
## Function