PHP Classes
Icontem

Class: Date Span


  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 Victor Hugo Cardenas Varon  >  Date Span  >  Download  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Date Span Support forum
Base name: date_span
Description: Calculate and spell the timespan between two dates
Version: -
Required PHP version: -
License: GNU General Public License (GPL)
All time users: 1013 users
All time rank: 2471
Week users: 1 user
Week rank: 3705
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Victor Hugo Cardenas Varon
Name: Victor Hugo Cardenas Varon <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: Colombia Colombia - PHP jobs in Colombia
Home page: ???
Age: 26
All time rank: 1498
Week rank: 1996

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

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.

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (70.0%)
Good (85.0%)
-
Sufficient (75.0%)
-
-
Not sure (51.0%)
1258
Month:
Not yet rated by the users

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

 
  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