strtotime
Source code is originally from here: http://locutus.io/php/datetime/strtotime/
Install
npm install --save nodestrtotime
Examples
var strtotime = require('nodestrtotime');
strtotime('+1 day', 1129633200)
strtotime('+1 week 2 days 4 hours 2 seconds', 1129633200)
strtotime('last month', 1129633200)
strtotime('2009-05-04 08:30:00 GMT')
strtotime('2009-05-04 08:30:00+00')
strtotime('2009-05-04 08:30:00+02:00')
strtotime('2009-05-04T08:30:00Z')