Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

Seconds Ago Modifier

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
{{ date | seconds_ago }}
{{ Statamic::modify($date)->secondsAgo() }}
{{ test_date | seconds_ago }}