Login   Register  
PHP Classes
elePHPant
Icontem

Class: Date Span

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Victor Hugo Cardenas Varon  >  Date Span  >  Download .tar.gz .zip  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Date Span
Base name: date_span
Description: Calculate and spell the timespan between two dates
Related classes: , , , , , ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1160 users
All time rank: 2658
Week users: 0 users
Week rank: 2420
Picture of Victor Hugo Cardenas Varon
Author: Victor Hugo Cardenas Varon <e-mail contact>
Packages: 1 Browse this author's classes Browse this author's classes
Country: Colombia Colombia - PHP jobs in Colombia
Age: 28
All time rank: 167911 in Colombia Colombia
Week rank: 2255 Down13 in Colombia Colombia Down


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

 

  Groups  
Group folder image Time and Date Time and date values, formats and conversion View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

  Rate classes User ratings   Applications   Files Files  

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (75.0%)
Good (87.5%)
-
Sufficient (79.2%)
-
-
Not sure (54.2%)
1207
Month:
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 clase_date_span.inc.php Class Class source code
Plain text file example_date_span.php Example Example script

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