Jump to content

calculate posting time


anujgarg

Recommended Posts

i want to display the difference between the time posted the answer and the current time. And it would be in the form of -

--4 secs ago (if it is < 60 secs)

--4 mins ago (if it is < 60 mins)

-- 1 hr ago (if it is > 60 mins and < 24 hrs)

and so on...

 

This is what I want to display...Any idea??

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.