PHP Classes
Icontem

Class: c_date


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of jerry mattsson  >  c_date  >  Download  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: c_date Support forum
Base name: calc_date_diff
Description: Perform basic arithmetic calculations with dates
Related top rated classes:
Version: -
Required PHP version: -
License: GNU General Public License (GPL)
All time users: 848 users
All time rank: 2771
Week users: 1 user
Week rank: 3815
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of jerry mattsson
Name: jerry mattsson <e-mail contact>
Published packages: 2 Browse this author's classes Browse this author's classes
Country: Sweden Sweden - PHP jobs in Sweden
Home page: http://www.timehole.com/
Age: ???
All time rank: 1223
Week rank: 1887

Groups

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

Detailed description

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.

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

File Role Description
Plain text file c_date.php Class Date calculations: diff, add days and subtract days from to dates
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.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products