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: 184 All time: 8,670 This week: 59Up
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: 6761 in Benin Benin
Week rank: 215 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 (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:184
This week:0
All time:8,670
This week:59Up