Fully Qualified Name: | Zend\Filter\DateTimeFormatter |
Extends: | AbstractFilter |
Name | Description | Defined By |
---|---|---|
__construct() | Sets filter options | DateTimeFormatter |
__invoke() | Invoke filter as a command | AbstractFilter |
filter() | Filter a datetime string by normalizing it to the filters specified format | DateTimeFormatter |
getOptions() | Retrieve options representing object state | AbstractFilter |
hasPcreUnicodeSupport() | AbstractFilter | |
setFormat() | Set the format string accepted by date() to use when formatting a string | DateTimeFormatter |
setOptions() | AbstractFilter |
Sets filter options
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns:
Invoke filter as a command
Proxies to {@link filter()}
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: mixed
Filter a datetime string by normalizing it to the filters specified format
Parameter Name | Type | Description |
---|---|---|
$value | \DateTime|string|int |
Returns: string
Retrieve options representing object state
Returns: array
Returns: bool
Set the format string accepted by date() to use when formatting a string
Parameter Name | Type | Description |
---|---|---|
$format | string |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: self