How to work out time elapsed from this datetime stamp and return it in either minutes, hours or days as appropriate
<p>I'm dealing with an api which is returning the date time stamp exactly as follows:</p>

<pre><code>Mon, 14 May 2012 14:14:11 +0000
</code></pre>

<p>I would like process this so php works out how many minutes ago this was if the number of minutes is less than 60 else how many hours ago it was if the number of hours is less than 24 else the number of days.</p>

<p>Dates will never be older than a few weeks.</p>

<p>Thanks.</p>
