Display elapsed time in wording, e.g., 2 hours ago, 1 year ago, etc.
Parameters | |||
---|---|---|---|
string|int
|
$time |
The elapsed time in unix timestamp or date/time string |
# |
string
|
$format = 'M j Y' |
The date/time format to show when 4 days passed |
# |
Returns | |
---|---|
string
|