print time from one date to another
A simple module to print elapsed time from one date to another.
I use this in several of my CLI tools and figured I should export it and not just copy it.
npm i timethat
var timethat = require'timethat'start = '1/1/2010 3:00:00'end = '1/1/2010 5:43:21';console.logtimethatcalcstart end;//2 hours, 43 minutes, 21 seconds
var start = '1/1/2010 3:00:00'end = '1/1/2010 3:21:02';console.logtimethatcalcstart end;//21 minutes, 2 seconds
console.logtimethatcalc1262336400000 1262336400150;//0.15 seconds
You can give it seconds or
Currently at 100% code coverage, reports are in the Travis builds.