 |
|
Innovation award
 Nominee: 9x
Winner: 1x |
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.)