class DateCaster

Casts DateTimeInterface related classes to array representation.

Constants

PERIOD_LIMIT

Methods

static 
castDateTime(DateTimeInterface $d, array $a, Stub $stub, $isNested, $filter)

No description

static 
castInterval(DateInterval $interval, array $a, Stub $stub, $isNested, $filter)

No description

static 
castTimeZone(DateTimeZone $timeZone, array $a, Stub $stub, $isNested, $filter)

No description

static 
castPeriod(DatePeriod $p, array $a, Stub $stub, $isNested, $filter)

No description

Details

at line 25
static castDateTime(DateTimeInterface $d, array $a, Stub $stub, $isNested, $filter)

Parameters

DateTimeInterface $d
array $a
Stub $stub
$isNested
$filter

at line 44
static castInterval(DateInterval $interval, array $a, Stub $stub, $isNested, $filter)

Parameters

DateInterval $interval
array $a
Stub $stub
$isNested
$filter

at line 72
static castTimeZone(DateTimeZone $timeZone, array $a, Stub $stub, $isNested, $filter)

Parameters

DateTimeZone $timeZone
array $a
Stub $stub
$isNested
$filter

at line 83
static castPeriod(DatePeriod $p, array $a, Stub $stub, $isNested, $filter)

Parameters

DatePeriod $p
array $a
Stub $stub
$isNested
$filter