| Fully Qualified Name: | Zend\Hydrator\Strategy\DateTimeFormatterStrategy |
| Implements: | StrategyInterface |
| Name | Description | Defined By |
|---|---|---|
| __construct() | Constructor | DateTimeFormatterStrategy |
| extract() | {@inheritDoc} | DateTimeFormatterStrategy |
| hydrate() | Converts date time string to DateTime instance for injecting to object | DateTimeFormatterStrategy |
Constructor
| Parameter Name | Type | Description |
|---|---|---|
| $format | string | |
| $timezone | \DateTimeZone|null |
Returns:
{@inheritDoc}
Converts to date time string
| Parameter Name | Type | Description |
|---|---|---|
| $value | mixed|\DateTimeInterface |
Returns: mixed|string
Converts date time string to DateTime instance for injecting to object
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $value | mixed|string |
Returns: mixed|\DateTime