Zend\I18n\View\Helper\DateFormat
View helper for formatting dates.
Synopsis
class DateFormat
extends AbstractHelper
{
- // members
- protected string $locale;
- protected string $timezone;
- protected array $formatters;
- // Inherited members from AbstractHelper
- protected RendererInterface $view;
- // methods
- public void __construct()
- public string __invoke()
- public DateFormat setLocale()
- public string|null getLocale()
- public DateFormat setTimezone()
- public string|null getTimezone()
- // Inherited methods from AbstractHelper
- public AbstractHelper setView()
- public null|Renderer getView()
Hierarchy
Extends
Members
protected
- $formatters
—
array
Formatter instances - $locale
—
string
Locale to use instead of the default - $timezone
—
string
Timezone to use - $view
—
Zend\View\Renderer\RendererInterface
View object instance
Methods
public
- __construct()
- __invoke() — Format a date
- getLocale() — Get the locale to use
- getTimezone() — Get the timezone to use
- setLocale() — Set locale to use instead of the default
- setTimezone() — Set timezone to use instead of the default