PHP Classes

Very precise date difference: Calculate the days between dates within any years

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 183 This week: 1All time: 8,675 This week: 560Up
Version License PHP version Categories
m10 1.0Custom (specified...5Algorithms, PHP 5, Time and Date
Description 

Author

This class can calculate the days between dates within any years.

It can take as parameter two dates and computes the number of days that go from one date to the other.

The class can take dates go outside the limits of UNIX timestamps before 1970 and after 9999.

Picture of zinsou A.A.E.Moïse
  Performance   Level  
Name: zinsou A.A.E.Moïse is available for providing paid consulting. Contact zinsou A.A.E.Moïse .
Classes: 50 packages by
Country: Benin Benin
Age: 34
All time rank: 6781 in Benin Benin
Week rank: 106 Up1 in Benin Benin Equal
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Recommendations

datetime difference
calculate datetime difference

Example

<?php
require_once('./Vpdatedifference.class.php');
$x='1970-01-01';
$y='2038-01-19';
echo
getddiff($x,$y);
$y='10000-12-31';
echo
'<br>'. getddiff($x,$y);
?>


Details

Vpdatedifference class package is a simple but very precise class package to compute the precise number of days between two dates without the used of Unix timestamp limit and then beyond 31/12/9999 and before 01/01/1970. See the testVpdatediff.php file for example of how to use.This script is too short to provide more documentation. Contact at leizmo@gmail.com

  Files folder image Files  
File Role Description
Accessible without login Plain text file license.txt Lic. license
Accessible without login Plain text file readme.txt Doc. readme
Accessible without login Plain text file testVpdatediff.php Example example script
Plain text file Vpdatedifference.class.php Class class source

 Version Control Reuses Unique User Downloads Download Rankings  
 0%1
Total:183
This week:1
All time:8,675
This week:560Up