PHP Classes
elePHPant
Icontem

PHP Date Math Class: Perform operations with dates with long year range

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-12-31 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 351 All time: 6,606 This week: 1,042Up
Version License PHP version Categories
date-math 1GNU General Publi...5PHP 5, Time and Date
Description Author

This class can perform operations with dates with long year range.

It can perform several operations with dates that can be outside the range of 1970 and 2038.

Currently it can add a period to a date, calculate the age relatively to a given birth date, check if a date is valid, convert a date to the Julian calendar, get the date day of the month, week or year, calculate the difference between two dates, get the first day or the end day of the current, prior or next week, month, or year, compare dates and get the latest, etc..

Recommendations

datetime difference
calculate datetime difference

Picture of Bob Wedwick
  Performance   Level  
Name: Bob Wedwick <contact>
Classes: 3 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file DateMathClassA.php Class Date Math Class and Documentation
Accessible without login Plain text file Date_Math_ClassA.php.pseudo Doc. Date Math Class Test
Accessible without login Plain text file Date_Math_Class_Samples.txt Output Date Math Class Test
Accessible without login Plain text file Date_Math_Class_TestA.php Example Date Math Class Test
Accessible without login HTML file index.html Doc. Date Math Class Test

 Version Control Unique User Downloads Download Rankings  
 0%
Total:351
This week:0
All time:6,606
This week:1,042Up