I have a web page with a list of records from a database. For each record there is a timestamp, what I want to do is using the timestamp in mysql I would like to get the time difference in minutes from that timestamp up to the current time. How could I do this via jquery so I can update it in real time instead of having to hit the database over and over again to calculate the time difference?
Share
There are many jQuery plug-ins which provide this functionality. http://timeago.yarp.com/ is the one I’m the most familiar with.