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. |