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.
|
|
| 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: |
934 users |
| All time rank: |
3349 |
| Week users: |
0 users |
| Week rank: |
2076  |
| |
|
| There are not enough user ratings to display for this class. |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|
| File |
Role |
Description |
c_date.php |
Class |
Date calculations: diff, add days and subtract days from to dates |