PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 359 All time: 6,897 This week: 148Up
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: 4 packages by
Country: United States United States
Age: 81
All time rank: 1982281 in United States United States
Week rank: 410 Up43 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

  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:359
This week:0
All time:6,897
This week:148Up