PHP Classes

Difference between two dates: Calculate the difference of time between two dates

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 55%Total: 613 All time: 5,099 This week: 213Up
Version License PHP version Categories
difference-dates 1.0BSD License5.0Time and Date
Description Author

This class can calculate the difference of time between two dates.

It takes two dates in the ISO format and calculates the time that goes from one to the other.

The class outputs the time difference in years, months, weeks, days, hours, minutes and seconds.

Picture of Andrzej Krokos
Name: Andrzej Krokos <contact>
Classes: 9 packages by
Country: Poland Poland
Age: 51
All time rank: 118829 in Poland Poland
Week rank: 557 Up13 in Poland Poland Up

  Files folder image Files  
File Role Description
Plain text file diffclass.php Class difference class
Accessible without login Plain text file start.php Example start

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,099
This week:213Up
User Ratings User Comments (1)
 All time
For more information send a message to info at phpclasses dot org.