Convert date difference into a human readable format with PHP
08:30 19 Nov 2009

I want to convert a date string like "19.11.2009 14:00" into the age of it now like:

  • for 2 minutes or
  • for 1 week or
  • for 2 days
php datetime units-of-measurement date-difference human-readable