class TimeSince extends BaseFilter

TimeSince provides the 'timeSince' twig filter.

Formats the time as a string.

{{ 'now'|timeSince }}

Methods

__construct()

No description

getFilterOptions()

No description

object
getDI()

Return default dependency injector

string
getFilterName()

Return the filter name

string
handle(mixed $v = 'now', string $format = 'm/d/y g:ia')

Handle filter response

Details

in BaseFilter at line 13
__construct()

in BaseFilter at line 22
getFilterOptions()

in BaseFilter at line 31
object getDI()

Return default dependency injector

Return Value

object Phalcon\Di

at line 20
string getFilterName()

Return the filter name

Return Value

string

at line 31
string handle(mixed $v = 'now', string $format = 'm/d/y g:ia')

Handle filter response

Parameters

mixed $v
string $format

Return Value

string