PHP Classes

Calculate Date Difference: Compute the time difference between two dates

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
StarStarStar 43%Total: 2,300 All time: 1,696 This week: 455Up
Version License PHP version Categories
date_diff 1.0Free For Educatio...5PHP 5, Time and Date
Description 

Author

This class can be used the time difference between two dates.

It takes two dates with time and computes the time that goes from one to another.

The class returns an associative array with the entries with the time difference in years, months, days. hours. minutes and seconds.

Picture of Frank
Name: Frank <contact>
Classes: 1 package by
Country: Philippines Philippines
Age: ???
All time rank: 133715 in Philippines Philippines
Week rank: 215 Up4 in Philippines Philippines Up

  Files folder image Files (3)  
File Role Description
Plain text file class.Date_Diff Class Date difference calculator
Accessible without login Plain text file class.Date_Diff_with_Age Appl. Added new method get Age
Accessible without login Plain text file sample_script Example sample script

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:2,300
This week:0
All time:1,696
This week:455Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:50%StarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:3583