| Login | Register | |||
| Recommend this page to a friend! |
| Classes of Tom Schaefer | > | QDate | > | Download | > | > | > | |||||
|
|||||||||||||||||||||||
| Author | Detailed description | |||||
| Applications | Related links | |||||||
Author
Groups
Detailed descriptionThis 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
Applications that use this classNo application links were specified for this class.
Related links
Files
|
| Copyright (c) Icontem 1999-2009 | PHP Classes | - PHP Class Scripts |
| PHP Book Reviews | - Reviews of books and other products |