Download the PHP package fadoe/date without Composer
On this page you can find all versions of the php package fadoe/date. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor fadoe
Package date
Short Description Library to handle PHP DateTime objects
License BSD-3-Clause
Homepage https://github.com/fadoe/fadoe-date
Package date
Short Description Library to handle PHP DateTime objects
License BSD-3-Clause
Homepage https://github.com/fadoe/fadoe-date
Please rate this library. Is it a good library?
Informations about the package date
FaDoe\Date
This library provides some classes for date handling in PHP.
Installation
Use composer
to install this library:
Usage
Compare
Compare is a class to compare classes. You must create a instance with the to compare against other classes.
There are several compare methods:
constant | compare strategy |
---|---|
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 |
DateRange
This class creates classes between two dates.
DateTimeProvider
A class to give some 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.
All versions of date with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package fadoe/date contains the following files
Loading the files please wait ....