Property | Type | Description | |
---|---|---|---|
$allowFuture | allow future prefix in 'timeago' output | ||
$locale | name of locale |
Method | Description | |
---|---|---|
formatTimeago ( mixed $value ) : string | Formats value in timeago formatted string | |
inWords ( integer $seconds ) : string | Converts time delta to timeago formatted string | |
init ( ) | Component initialization |
Method | Description | |
---|---|---|
setLocale ( string $locale ) | Includes file with locale-specific data array. When locale isnt exists used default 'en' locale |
public formatTimeago ( mixed $value ) : string | ||
$value | mixed | timestamp, DateTime or date-formatted string |
return | string | timeago formatted string |