\Ceo\View\FiltersTimeSince

TimeSince provides the 'timeSince' twig filter.

Formats the time as a string.

{{ 'now'|timeSince }}

Summary

Methods
Properties
Constants
__construct()
getFilterOptions()
getDI()
getFilterName()
handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

getFilterOptions()

getFilterOptions() 

getDI()

getDI() : object

Return default dependency injector

Returns

object —

Phalcon\Di

getFilterName()

getFilterName() : string

Return the filter name

Returns

string

handle()

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

Handle filter response

Parameters

mixed $v
string $format

Returns

string