Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nodestrtotime

iamdual3941.0.0

Node.js implementation of strtotime()

strtotime, time, date

readme

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')