Created
September 30, 2016 09:45
-
-
Save reqshark/9b8fce5258cfcf7fd801410df02a3d02 to your computer and use it in GitHub Desktop.
when was that?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* `_ (27).daysago` | |
* returns date notation n days ago | |
*/ | |
exports._ = n => { // 86400000 == 24 hrs | |
return { daysago : new Date( Date.now() - (n * 86400000) )}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment