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

    Mon, 14 May 2012 14:14:11 +0000

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.

Dates will never be older than a few weeks.

Thanks.
How to work out time elapsed from this datetime stamp and return it in either minutes, hours or days as appropriate
===

I'm dealing with an api which is returning the date time stamp exactly as follows:

    Mon, 14 May 2012 14:14:11 +0000

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.

Dates will never be older than a few weeks.

Thanks.