Documentation

LocalDate extends BaseFilter
in package

LocalDate provides the 'localDate' twig filter.

Local dates are converted the the site's local timezone, not the user's.

{{ 'now'|localDate('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'
Return values
string

Search results