package Default

 Methods

Constructor

__construct(string $format = \DateTime::RFC3339, \DateTimeZone|null $timezone = null

Parameters

$format

string

$timezone

\DateTimeZonenull

Converts the given value so that it can be extracted by the hydrator.

extract(mixed|\DateTime $value) : mixed | string

Converts to date time string

inherited_from \Zend\Stdlib\Hydrator\Strategy\StrategyInterface::extract()

Parameters

$value

mixed\DateTime

Returns

mixedstring

Converts date time string to DateTime instance for injecting to object

hydrate(mixed|string $value) : mixed | \DateTime
inherited_from \Zend\Stdlib\Hydrator\Strategy\StrategyInterface::hydrate()

Parameters

$value

mixedstring

Returns

mixed\DateTime

 Properties

 

$format

$format : string

Default

 

$timezone

$timezone : \DateTimeZone | null

Default