class DateRange
A PHP representation of the DSE DateRange datatype
Extends
Methods
__construct
(mixed $bounds )
Create a Dse\DateRange object
<?php
use Dse\DateRange;
use Dse\DateRange\Bound;
use Dse\DateRange\Precision;
// DateRange constructed with a single Bound object.
$bound = new Bound(Precision::YEAR, 1491252166000);
$dr = new DateRange($bound);
// A DateRange with lower and upper bounds, using a mix of Bound object and raw values
$dr = new DateRange($bound, Precision::DAY, 1491252266000);
// Range with no lower bound
$dr = new DateRange(Bound::unbounded(), $bound);
Type\Custom type
( )The type of this value.
Bound lowerBound
( )Bound upperBound
( )boolean isSingleDate
( )string