Login   Register  
PHP Classes
elePHPant
Icontem

c_date: Perform basic arithmetic calculations with dates

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of jerry mattsson
Name: jerry mattsson <e-mail contact>
Packages: 2 Browse all classes by jerry mattsson Browse all classes by
Country: Sweden Sweden - PHP jobs in Sweden
Age: ???
All time rank: 150613 in Sweden Sweden
Week rank: 993 Up7 in Sweden Sweden Up


  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of jerry mattsson  >  c_date  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: c_date
Base name: calc_date_diff
Description: Perform basic arithmetic calculations with dates
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 942 users
All time rank: 3463
Week users: 0 users
Week rank: 1999 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Time and Date Time and date values, formats and conversion View top rated classes


  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  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

Download Download all files: calc_date_diff.tar.gz calc_date_diff.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.