Zend\Filter\DateTimeFormatter
Synopsis
class DateTimeFormatter
extends AbstractFilter
{
- // members
- protected string $format;
- // Inherited members from AbstractFilter
- protected array $options;
- // methods
- public void __construct()
- public self setFormat()
- public string filter()
- protected string normalizeDateTime()
- // Inherited methods from AbstractFilter
- public static bool hasPcreUnicodeSupport()
- public self setOptions()
- public array getOptions()
- public mixed __invoke()
- protected static bool isOptions()
Hierarchy
Extends
Members
protected
- $format
—
string
A valid format string accepted by date() - $options
—
array
Filter options
Methods
protected
- normalizeDateTime() — Normalize the provided value to a formatted string
public
- __construct() — Sets filter options
- filter() — Filter a datetime string by normalizing it to the filters specified format
- setFormat() — Set the format string accepted by date() to use when formatting a string
Inherited from Zend\Filter\AbstractFilter
protected
public
- __invoke() — Invoke filter as a command
- getOptions() — Retrieve options representing object state
- hasPcreUnicodeSupport()
- setOptions()