Library that extends the PHP date class
This library provides some classes for date handling in PHP.
composer to install this library:
composer.phar require fadoe/date
Compare is a class to compare
\DateTime classes. You must create a instance with the
\DateTime to compare
There are several compare methods:
|Compare::GT_FROM_LT_TO||date from < compare date < date to|
|Compare::GT_FROM_LTEQ_TO||date from < compare date <= date to|
|Compare::GTEQ_FROM_LT_TO||date from <= compare date < date to|
|Compare::GTEQ_FROM_LTEQ_TO||date from <= compare date <= date to|
This class creates
\DateTime classes between two dates.
This class extends the original
\DateTime class and adds some helper methods. It also adds support to serialise
A class to give some
\DateTime classes. Usefull for classes that need the current date for calculation. With this
class you have a provider for dates and you can mock this in unit tests.
This class adds the magic method __toString() to the native PHP DateTimeZone class.