PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   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: 185 All time: 8,657 This week: 68Up
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 <contact>
Classes: 50 packages by
Country: Benin Benin
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 (4)  
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

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 Reuses Unique User Downloads Download Rankings  
 0%1
Total:185
This week:0
All time:8,657
This week:68Up