Download the PHP package warmans/date-range without Composer
On this page you can find all versions of the php package warmans/date-range. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download warmans/date-range
More information about warmans/date-range
Files in warmans/date-range
Download warmans/date-range
More information about warmans/date-range
Files in warmans/date-range
Vendor warmans
Package date-range
Short Description Small utility class used to create date range arrays.
License
Package date-range
Short Description Small utility class used to create date range arrays.
License
Please rate this library. Is it a good library?
Informations about the package date-range
Date Range
Relative
Thin wrapper around DateTime classes to simplify generating date ranges relative to the current date.
Basic Usage
Create a range instance specifying its options:
$range = new \DateRange\Relative(array('length'=>'60 DAY', 'interval'=>'P1D');
Export the specified range as an array:
var_dump($range->getRange());
It will look something like this:
array(
'01-01-2014' => array('raw' => \DateTime, 'formatted' => '01-01-2014')
'02-01-2014' => array('raw' => \DateTime, 'formatted' => '02-01-2014')
//etc...
)
Options
Option | Example | Description |
---|---|---|
length | 30 DAYS | DateTime format relative date string |
modify | -1 DAY | Offset the date range by this DateTime format relative date string |
interval | P1D | DateInterval format interval |
date_format | Y-m-d | date() style date format for result |
All versions of date-range with dependencies
PHP Build Version
Package Version
No informations.
The package warmans/date-range contains the following files
Loading the files please wait ....