This class can calculate the time span between dates, not just in numbers but also spell it in a more natural was using words like this: "1 year, 6 months and 12 days".
This class is very useful when you need to present to the users how much time have passed since a past event in an easy to understand way.
The class returns the difference of time between two given dates or between a given date and the current system date.
Currently, it can spell the computed time difference in four languages: English, German (thanks to "Jürgen Fehr" and "jo t"), French (thanks to Benoit Dausse) or Spanish, which is the default. The class is designed to easily be extended to support other idioms.
|
|
| Name: |
Date Span |
| Base name: |
date_span |
| Description: |
Calculate and spell the timespan between two dates |
| Version: |
- |
| PHP version: |
- |
| License: |
GNU General Public License (GPL) |
| All time users: |
1202 users |
| All time rank: |
2767 |
| Week users: |
1 user |
| Week rank: |
2173  |
| |
|
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Sufficient (75.0%) |
Good (87.5%) |
- |
Sufficient (79.2%) |
- |
- |
Not sure (54.2%) |
1251 |
| Month: |
Not yet rated by the users |
| |
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 |
|
|