Sliding Duration with Javascript or JQuery
<p>Can anyone please suggest, from given date how to calculate sliding duration in javascript or jquery...</p>

<p>I need following output..</p>

<pre><code>- Article published 2 seconds back.
- Article publieshed 1 day back.
- Last modified 3 weeks back..
- Last mondified 1 month back...
</code></pre>

<p>Thank you very much.</p>
