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

Package detail

strtotime

hash-bang14kMIT1.0.0

Node StrToTime function

strtotime, time, date

readme

strtotime

Node StrToTime function.

This code is taken from the original project by blaxmas.

This is a simple fork of the original code but with the main difference that the Date.prototype scope is not extended.

Examples

var strtotime = require('strtotime');

strtotime('1 week');
strtotime('next friday');
strtotime('2015-01-05');
strtotime('27/02/2017');