PHP Classes

c_date: Perform basic arithmetic calculations with dates

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 956 All time: 3,749 This week: 241Up
Version License Categories
calc_date_diff 1.0GNU General Publi...Time and Date
Description Author

This is a simple class that performs basic arithmetic calculations with dates.

It can add or subtract an amount of days to a given date.

It can also calculate the difference of days between two dates, returning fractions of days as result. Use the round() or floor() to eliminate fractions.

It uses the strtotime() function to convert the dates into 32 bit integer timestamp values to perform the calculations. Therefore, the class is limited to dates that start on 1970-01-01.

Picture of jerry mattsson
Name: jerry mattsson <contact>
Classes: 2 packages by
Country: Sweden Sweden
Age: ???
All time rank: 163413 in Sweden Sweden
Week rank: 441 Up4 in Sweden Sweden Up

  Files folder image Files  
File Role Description
Plain text file c_date.php Class Date calculations: diff, add days and subtract days from to dates

 Version Control Unique User Downloads Download Rankings  
 0%
Total:956
This week:0
All time:3,749
This week:241Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2453
  
For more information send a message to info at phpclasses dot org.