Basically you set up a setInterval which governs ho frequently you update your time attribute. I used a span
with a class .time
to so you could theoretically update anything with time.
I would go further and hash your posts so you can easily retrieve each posts original time.
EDIT: added a new fiddle.