timestamp

Takes in a unix timestamp and turns it into a human-readable relative time string, like "5 minutes ago" or "just now".

Parameters:
Name Type Description
time integer

The time to format

Returns:

Formatted string

Type
String
Example
Now - 5 minutes
{{ fiveMinAgo | timestamp}}
Now - 1 day
{{ oneDayAgo | timestamp}}
Now - 3 days
{{ threeDaysAgo | timestamp}}
<span>{{yesterday | timestamp}}</span>