timer()

Show time ago from timestamp.


timer( [ int $time ] ) : string

Parameters

$time (int) (Optional) Timestamp or if empty it use time(). Default value: null

Return Values

(string)

Examples

echo timer(1050149787);
// <abbr class='atooltip' data-toggle='tooltip' data-placement='top' title='April 12 2003 14:16:27'>17 years ago</abbr>