how news contextual inadequacy between twin timestamps javascript?


let's contend i've got twin strings javascript:



var date1 = '2008-10-03t20:24z'
var date2 = '2008-10-04t12:24z'


how i outcome so:



'4 weeks ago'


or



'in 15 minutes'


(should support past future).



there solutions out there past diffs, nonetheless i've nonetheless support destiny diffs well.



these solutions i tried:





bonus points jquery solution.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?