moment-parse-duration
v1.0.0
Published
Parse strings representing durations using `moment.duration`
Downloads
4
Readme
moment-parse-duration
Parse duration strings using moment.parse
.
npm install moment-parse-duration
Examples:
moment.parseDuration('2 days and 5 hours'); // 2 days and 5 hours
moment.parseDuration('1 year, 2 days, 5 minutes plus 1 day'); // 1 year, 3 days, 5 minutes