minutes_ago Modifier

Returns the number of minutes 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 | minutes_ago }}

{{ /noparse }}

{{ test_date | minutes_ago }}
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →