TimeAgo will read a date or time value in any PHP supported format and will display it in a relative format.
The class mimicks Twitter's relative dates display.
A sample is included with the download package.
Limitations:
· Since PHP 5.3, PHP's built-in function DateTime::diff supports the same functionality. Nevertheless, TimeAgo is a good fallback method for supporting the same functionality on older PHP versions.
What's New in This Release: [ read full changelog ]
· Added comment about this class being deprecated.