DateCaster
in package
Casts DateTimeInterface related classes to array representation.
Tags
Table of Contents
- castDateTime() : mixed
- castInterval() : mixed
- castPeriod() : mixed
- castTimeZone() : mixed
- formatDateTime() : mixed
- formatInterval() : mixed
- formatSeconds() : mixed
Methods
castDateTime()
public
static castDateTime(DateTimeInterface $d, array<string|int, mixed> $a, Stub $stub, mixed $isNested, mixed $filter) : mixed
Parameters
- $d : DateTimeInterface
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
- $filter : mixed
Return values
mixed —castInterval()
public
static castInterval(DateInterval $interval, array<string|int, mixed> $a, Stub $stub, mixed $isNested, mixed $filter) : mixed
Parameters
- $interval : DateInterval
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
- $filter : mixed
Return values
mixed —castPeriod()
public
static castPeriod(DatePeriod $p, array<string|int, mixed> $a, Stub $stub, mixed $isNested, mixed $filter) : mixed
Parameters
- $p : DatePeriod
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
- $filter : mixed
Return values
mixed —castTimeZone()
public
static castTimeZone(DateTimeZone $timeZone, array<string|int, mixed> $a, Stub $stub, mixed $isNested, mixed $filter) : mixed
Parameters
- $timeZone : DateTimeZone
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
- $filter : mixed
Return values
mixed —formatDateTime()
private
static formatDateTime(DateTimeInterface $d[, mixed $extra = '' ]) : mixed
Parameters
- $d : DateTimeInterface
- $extra : mixed = ''
Return values
mixed —formatInterval()
private
static formatInterval(DateInterval $i) : mixed
Parameters
- $i : DateInterval
Return values
mixed —formatSeconds()
private
static formatSeconds(mixed $s, mixed $us) : mixed
Parameters
- $s : mixed
- $us : mixed