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: 182 All time: 8,659 This week: 148Up
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: 6811 in Benin Benin
Week rank: 64 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:182
This week:0
All time:8,659
This week:148Up