View helper for formatting dates.
Methods
__construct()
__construct()
Format a date
__invoke(\DateTime | int | array $date, int $dateType, int $timeType, string $locale, string | null $pattern) : string
Parameters
$dateType
int
$timeType
int
$locale
string
$pattern
stringnull
Returns
string
Get the locale to use
getLocale() : string | null
Get the timezone to use
getTimezone() : string | null
Set the View object
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::setView() |
Parameters
Returns
Properties
Locale to use instead of the default
$locale : string
Timezone to use
$timezone : string