Skip to content Skip to footer navigation

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.

# Assuming the current time is June 19, 2012 at 8:31 am.
date: June 19 2012 8:30 am
{{ date | seconds_ago }}
{{ Statamic::modify($date)->secondsAgo() }}
60