PHP Classes

PHP Time Ago: Compute the difference between two time values

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 350 All time: 6,996 This week: 660Up
Version License PHP version Categories
php-time-ago 1.0GNU General Publi...4.0Time and Date
Description 

Author

This class can compute the difference between two time values.

It compares two timestamp values and returns an English string that expresses the difference between the time values in years, months, weeks, days, hours, minutes or seconds.

If the second timestamp value is omitted, the class returns the time difference relatively to the current time.

Picture of Radovan Janjic
  Performance   Level  
Name: Radovan Janjic is available for providing paid consulting. Contact Radovan Janjic .
Classes: 14 packages by
Country: Serbia Serbia
Age: 36
All time rank: 2382 in Serbia Serbia
Week rank: 51 Up1 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example Example script
Plain text file time_ago.class.php Class Class file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:350
This week:0
All time:6,996
This week:660Up