Login   Register  
PHP Classes
elePHPant
Icontem

QDate

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

  Author  
Picture of Tom Schaefer
Name: Tom Schaefer is available for providing paid consulting. Contact Tom Schaefer .
Packages: 39 Browse all classes by Tom Schaefer Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: ???
All time rank: 1159 in Germany Germany
Week rank: 46 Up3 in Germany Germany Up
Innovation award
Innovation award
Nominee: 9x

Winner: 1x


  Detailed description   Download .zip .tar.gz  
This package can be used to manipulate dates in several formats.

There are base classes that take care of generic date formatting functions and options.

A base container sub-class provides functions to set and get each element of a date like the year, month, day, hour, minute, second, etc.

There are also two sub-classes to change the default date format to the German format or ISO.

The classes provide a fluent interface so several concatenated operations may be called within single statement.

Easily to enhance by defining a new Q{LANGUAGE}Date class, where you only have to define the locale (like QGermanDate)=>

class QNetherlandDate extends QDateContainer {
const lang = 'nl_NL';
const locale = 'nld_nld';

...
}

Now the Class creates month and day names for the Netherlands.


class QFormat holds country specific date format rules.

$f = new QFormat;
$f->set({your-array-with-formats})

Look at the class format for getting the array structure.

(Documentation comes later.)

  Classes of Tom Schaefer  >  QDate  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: QDate
Base name: qdate
Description: Manipulate dates in different formats
Version: 0.1
PHP version: 5
License: MIT/X Consortium License
All time users: 254 users
All time rank: 6410
Week users: 0 users
Week rank: 2076 Equal
 
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Time and Date Time and date values, formats and conversion View top rated classes


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

  Related links  
Link Description
Ultimate Date Parser The inspiring class for QDatePattern

  Files folder image Files  
File Role Description
Plain text file QDate.class.php Class Set of Date Classes
Accessible without login Plain text file sample.php Example Samples showing how to use the fluent interface design.

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