Modifier: seconds_ago

Returns the number of seconds since a given date variable. Statamic will attempt to parse any string as a date, but try to keep it in the least ambiguous date format possible.

date: October 1 2015 8:30:am

{{ noparse }}

{{ date | seconds_ago }}

{{ /noparse }}

{{ test_date | seconds_ago }}
Betterify this page on Github!