Hours Ago Modifier
Returns the number of hours 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
{{ date | hours_ago }}
{{ Statamic::modify($date)->hoursAgo() }}
{{ test_date | hours_ago }}
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page