timestr
A simple module for interpreting time duration strings.
Installation
npm install timestr
Useage
Create a timestr object from a time duration string and use as needed:
var timestr = time = ; time; // => 3024000000time; // => 3024000time; // => 50400time; // => 840time; // => 35time // => 5;
Formats
You can create a timestr object from most common formats:
var timestr = ; // without units, values are treated as ms;; // milliseconds;;; // seconds;;;;; // minutes;;;;; // hours;;;;; // days;;; // weeks;;;;;