PHP Classes
Icontem

Class: QDate


  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 Tom Schaefer  >  QDate  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: QDate Support forum
Base name: qdate
Description: Manipulate dates in different formats
Version: 0.1
Required PHP version: 5
License: MIT/X Consortium License
All time users: 204 users
All time rank: 4729
Week users: 0 users
Week rank: 3082
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Related links   Files Files  

Author

Picture of Tom Schaefer
Name: Tom Schaefer <e-mail contact>
Published packages: 24 Browse this author's classes Browse this author's classes
Country: Germany Germany - PHP jobs in Germany
Home page: http://www.query4u.de/tests/samples/
Age: ???
All time rank: 248
Week rank: 49

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

Detailed description

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

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

File Role Description
Plain text file QDate.class.php Class Set of Date Classes
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.

 
  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