Login   Register  
PHP Classes
elePHPant
Icontem

Date Span

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Victor Hugo Cardenas Varon
Name: Victor Hugo Cardenas ... <e-mail contact>
Packages: 1 Browse all classes by Victor Hugo Cardenas Varon Browse all classes by
Country: Colombia Colombia - PHP jobs in Colombia
Age: 29
All time rank: 180411 in Colombia Colombia
Week rank: 1485 Up11 in Colombia Colombia Equal


  Detailed description   Download .zip .tar.gz  
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.

  Classes of Victor Hugo Cardenas Varon  >  Date Span  >  Download .zip .tar.gz  >  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
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 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  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


  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%)
1251
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 folder image Files  
File Role Description
Plain text file clase_date_span.inc.php Class Class source code
Accessible without login 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.