View helper for formatting dates.
Methods
Format a date.
__invoke(\DateTime | integer | 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 timezone to use.
getTimezone() : string | null
Get the locale to use.
getlocale() : 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