I am trying to calculate the difference between NOW and when an item was posted. How can I do this? Currently I am only getting monster big results which are not correct..
Goal:
How many seconds ago was this posted?
var thisTime = jQuery.now()/1000;
var postTime = new Date('2014-07-30 07:32:22')/1000;
var timeDiff = thisTime - postTime;
var text = timeDiff +'seconds ago';
Should return something like: timeDiff seconds ago.