Date
extends LocalDate
in package
Date overrides the Twig 'date' filter. As all dates are stored and handled in UTC, this converts them to the local timezone before display.
{{ 'now'|date('m/d/y g:ia') }}
Table of Contents
- __construct() : mixed
- getDI() : object
- Return default dependency injector
- getFilterName() : string
- Return the filter name
- getFilterOptions() : mixed
- handle() : string
- Handle filter response
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getDI()
Return default dependency injector
public
getDI() : object
Return values
object —Phalcon\Di
getFilterName()
Return the filter name
public
getFilterName() : string
Return values
string —getFilterOptions()
public
getFilterOptions() : mixed
Return values
mixed —handle()
Handle filter response
public
handle(mixed $time[, string $format = 'c' ]) : string
Parameters
- $time : mixed
- $format : string = 'c'